1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-03 02:42:25 +03:00
Files
go-redis/doctests/main_test.go
2025-06-06 16:25:35 +03:00

17 lines
293 B
Go

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)
}