IPNet defines an net.IPNet flag with specified name, default value, and usage string. The return value is the address of an net.IPNet variable that stores the value of the flag.
(name string, value net.IPNet, usage string)
| 74 | // IPNet defines an net.IPNet flag with specified name, default value, and usage string. |
| 75 | // The return value is the address of an net.IPNet variable that stores the value of the flag. |
| 76 | func (f *FlagSet) IPNet(name string, value net.IPNet, usage string) *net.IPNet { |
| 77 | p := new(net.IPNet) |
| 78 | f.IPNetVarP(p, name, "", value, usage) |
| 79 | return p |
| 80 | } |
| 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 { |