IPNetP is like IPNet, but accepts a shorthand letter that can be used after a single dash.
(name, shorthand string, value net.IPNet, usage string)
| 81 | |
| 82 | // IPNetP is like IPNet, but accepts a shorthand letter that can be used after a single dash. |
| 83 | func (f *FlagSet) IPNetP(name, shorthand string, value net.IPNet, usage string) *net.IPNet { |
| 84 | p := new(net.IPNet) |
| 85 | f.IPNetVarP(p, name, shorthand, value, usage) |
| 86 | return p |
| 87 | } |
| 88 | |
| 89 | // IPNet defines an net.IPNet flag with specified name, default value, and usage string. |
| 90 | // The return value is the address of an net.IPNet variable that stores the value of the flag. |