Use LRANGE to get the elements of a list:
func GetValues(key string) []string {
value, err := redis.Strings(conn.Do("LRANGE", key, 0, -1))
if err != nil {
log.Fatal(err)
}
return value
}
The GET command gets the value of a string key. The GET command does not work on list keys.