func getString(bi []interface{}, i int) string {
	return string(bi[i].([]uint8))
}
Get a string from a list of results at a given position
package simpleredis
import (
	"errors"
	"strconv"
	"strings"
	"time"
	"github.com/gomodule/redigo/redis"
)
const (
	Version = 2.6
	defaultRedisServer = ":6379"
)
type redisDatastructure struct {
	pool    *ConnectionPool
	id      string
	dbindex int
}
type (
	ConnectionPool redis.Pool
	List     redisDatastructure
	Set      redisDatastructure
	HashMap  redisDatastructure
	KeyValue redisDatastructure
)
var (
	connectTimeout = 7 * time.Second
	readTimeout    = 7 * time.Second
	writeTimeout   = 7 * time.Second
	idleTimeout    = 240 * time.Second
	maxIdleConnections = 3
)
func newRedisConnection() (redis.Conn, error) {
	return newRedisConnectionTo(defaultRedisServer)
}
func newRedisConnectionTo(hostColonPort string) (redis.Conn, error) {
	if _, theRest, ok := twoFields(hostColonPort, "@"); ok {
		hostColonPort = theRest
	}
	hostColonPort = strings.TrimSpace(hostColonPort)
	c, err := redis.Dial("tcp", hostColonPort, redis.DialConnectTimeout(connectTimeout), redis.DialReadTimeout(readTimeout), redis.DialWriteTimeout(writeTimeout))
	if err != nil {
		if c != nil {
			c.Close()
		}
		return nil, err
	}
	return c, nil
}