(m uhaha.Machine, args []string)
| 347 | v, err := ldb.LRange([]byte(args[1]), int32(start), int32(stop)) |
| 348 | if err != nil { |
| 349 | return nil, err |
| 350 | } |
| 351 | return v, nil |
| 352 | } |
| 353 | |
| 354 | func cmdRPOP(m uhaha.Machine, args []string) (interface{}, error) { |
| 355 | if len(args) != 2 { |
| 356 | return nil, uhaha.ErrWrongNumArgs |
| 357 | } |
| 358 | |
| 359 | v, err := ldb.RPop([]byte(args[1])) |
| 360 | if err != nil { |
| 361 | return nil, err |
| 362 | } |
nothing calls this directly
no outgoing calls
no test coverage detected