(name string)
| 636 | } |
| 637 | |
| 638 | func (o *queryOptions) bool(name string) bool { |
| 639 | switch s := o.string(name); s { |
| 640 | case "true", "1": |
| 641 | return true |
| 642 | case "false", "0", "": |
| 643 | return false |
| 644 | default: |
| 645 | if o.err == nil { |
| 646 | o.err = fmt.Errorf("redis: invalid %s boolean: expected true/false/1/0 or an empty string, got %q", name, s) |
| 647 | } |
| 648 | return false |
| 649 | } |
| 650 | } |
| 651 | |
| 652 | func (o *queryOptions) remaining() []string { |
| 653 | if len(o.q) == 0 { |
no test coverage detected