IPSliceVar defines a ipSlice flag with specified name, default value, and usage string. The argument p points to a []net.IP variable in which to store the value of the flag.
(p *[]net.IP, name string, value []net.IP, usage string)
| 140 | // IPSliceVar defines a ipSlice flag with specified name, default value, and usage string. |
| 141 | // The argument p points to a []net.IP variable in which to store the value of the flag. |
| 142 | func (f *FlagSet) IPSliceVar(p *[]net.IP, name string, value []net.IP, usage string) { |
| 143 | f.VarP(newIPSliceValue(value, p), name, "", usage) |
| 144 | } |
| 145 | |
| 146 | // IPSliceVarP is like IPSliceVar, but accepts a shorthand letter that can be used after a single dash. |
| 147 | func (f *FlagSet) IPSliceVarP(p *[]net.IP, name, shorthand string, value []net.IP, usage string) { |