1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

DOC-5078 vector set examples (#3394)

This commit is contained in:
andy-stark-redis
2025-06-06 14:25:35 +01:00
committed by GitHub
parent 4e22885ca1
commit 98b224cf7d
5 changed files with 612 additions and 8 deletions

16
doctests/main_test.go Normal file
View File

@ -0,0 +1,16 @@
package example_commands_test
import (
"fmt"
"os"
"strconv"
"strings"
)
var RedisVersion float64
func init() {
// read REDIS_VERSION from env
RedisVersion, _ = strconv.ParseFloat(strings.Trim(os.Getenv("REDIS_VERSION"), "\""), 64)
fmt.Printf("REDIS_VERSION: %.1f\n", RedisVersion)
}