IPNetVarP is like IPNetVar, but accepts a shorthand letter that can be used after a single dash.
(p *net.IPNet, name, shorthand string, value net.IPNet, usage string)
| 57 | |
| 58 | // IPNetVarP is like IPNetVar, but accepts a shorthand letter that can be used after a single dash. |
| 59 | func (f *FlagSet) IPNetVarP(p *net.IPNet, name, shorthand string, value net.IPNet, usage string) { |
| 60 | f.VarP(newIPNetValue(value, p), name, shorthand, usage) |
| 61 | } |
| 62 | |
| 63 | // IPNetVar defines an net.IPNet flag with specified name, default value, and usage string. |
| 64 | // The argument p points to an net.IPNet variable in which to store the value of the flag. |
no test coverage detected