(m uhaha.Machine, args []string)
| 169 | |
| 170 | return n, nil |
| 171 | } |
| 172 | |
| 173 | func cmdHMGET(m uhaha.Machine, args []string) (interface{}, error) { |
| 174 | if len(args) < 3 { |
| 175 | return nil, uhaha.ErrWrongNumArgs |
| 176 | } |
| 177 | |
| 178 | keys := make([][]byte, len(args)-2) |
| 179 | |
| 180 | for i := 2; i < len(args); i++ { |
| 181 | keys[i-2] = []byte(args[i]) |
| 182 | } |
| 183 | |
| 184 | v, err := ldb.HMget([]byte(args[1]), keys...) |
| 185 | if err != nil { |
| 186 | return nil, err |
| 187 | } |
| 188 | |
| 189 | return v, nil |
| 190 | } |
| 191 |
nothing calls this directly
no outgoing calls
no test coverage detected