IPSliceVar defines a []net.IP 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)
| 151 | // IPSliceVar defines a []net.IP flag with specified name, default value, and usage string. |
| 152 | // The argument p points to a []net.IP variable in which to store the value of the flag. |
| 153 | func IPSliceVar(p *[]net.IP, name string, value []net.IP, usage string) { |
| 154 | CommandLine.VarP(newIPSliceValue(value, p), name, "", usage) |
| 155 | } |
| 156 | |
| 157 | // IPSliceVarP is like IPSliceVar, but accepts a shorthand letter that can be used after a single dash. |
| 158 | func IPSliceVarP(p *[]net.IP, name, shorthand string, value []net.IP, usage string) { |
nothing calls this directly
no test coverage detected