Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if e.Command == "HMSET" {
- // Build up a string slice to hold the key value pairs
- args := make([]string, 0, len(e.MapData) * 2)
- for k, v := range e.MapData {
- args = append(args, k, v)
- }
- _,err := redis.StringMap(client.Do("HMSET", e.Key, args...))
- checkErr(err, "hmset error:")
- }
- too many arguments in call to client.Do
- have (string, string, []string...)
- want (string, ...interface {})
- args := make([]interface{}, 0, len(e.MapData) * 2 + 1)
- args = append(args, e.Key)
- for k, v := range e.MapData {
- args = append(args, k, v)
- }
- _,err := redis.StringMap(client.Do("HMSET", args...))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement