Documentation ¶
Index ¶
- func AddrSlice(f *pflag.FlagSet, name string, value []netip.Addr, usage string) *[]netip.Addr
- func AddrSliceP(f *pflag.FlagSet, name, shorthand string, value []netip.Addr, usage string) *[]netip.Addr
- func AddrSliceVar(f *pflag.FlagSet, p *[]netip.Addr, name string, value []netip.Addr, ...)
- func AddrSliceVarP(f *pflag.FlagSet, p *[]netip.Addr, name, shorthand string, value []netip.Addr, ...)
- func AddrVar(f *pflag.FlagSet, p *netip.Addr, name string, value netip.Addr, usage string)
- func AddrVarP(f *pflag.FlagSet, p *netip.Addr, name, shorthand string, value netip.Addr, ...)
- func PrefixVar(f *pflag.FlagSet, p *netip.Prefix, name string, value netip.Prefix, ...)
- func PrefixVarP(f *pflag.FlagSet, p *netip.Prefix, name, shorthand string, value netip.Prefix, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrSlice ¶
AddrSlice defines a []netip.Addr flag with specified name, default value, and usage string. The return value is the address of a []netip.Addr variable that stores the value of that flag.
func AddrSliceP ¶
func AddrSliceP(f *pflag.FlagSet, name, shorthand string, value []netip.Addr, usage string) *[]netip.Addr
AddrSliceP is like AddrSlice, but accepts a shorthand letter that can be used after a single dash.
func AddrSliceVar ¶
AddrSliceVar defines a addrSlice flag with specified name, default value, and usage string. The argument p points to a []netip.Addr variable in which to store the value of the flag.
func AddrSliceVarP ¶
func AddrSliceVarP(f *pflag.FlagSet, p *[]netip.Addr, name, shorthand string, value []netip.Addr, usage string)
AddrSliceVarP is like AddrSliceVar, but accepts a shorthand letter that can be used after a single dash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.