...

Source file src/github.com/redis/go-redis/v9/doctests/main_test.go

Documentation: github.com/redis/go-redis/v9/doctests

     1  package example_commands_test
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  	"strconv"
     7  	"strings"
     8  )
     9  
    10  var RedisVersion float64
    11  
    12  func init() {
    13  	// read REDIS_VERSION from env
    14  	RedisVersion, _ = strconv.ParseFloat(strings.Trim(os.Getenv("REDIS_VERSION"), "\""), 64)
    15  	fmt.Printf("REDIS_VERSION: %.1f\n", RedisVersion)
    16  }
    17  

View as plain text