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:
16
doctests/main_test.go
Normal file
16
doctests/main_test.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user