Documentation ¶
Overview ¶
Package addrs provides flags to define one or an array of net.Addr.
Index ¶
- func FlagManyVar(dest *[]net.Addr, name string, addrs string, usage string)
- func FlagOneVar(dest *net.Addr, name string, addr string, usage string)
- func FlagSetManyVar(set *flag.FlagSet, dest *[]net.Addr, name string, addrs string, usage string)
- func FlagSetOneVar(set *flag.FlagSet, dest *net.Addr, name string, addr string, usage string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlagManyVar ¶
FlagManyVar sets a slice of net.Addr by a flag. The values are expected to be comma separated list of net:host:port triples.
func FlagOneVar ¶
FlagOneVar sets a single net.Addr by a flag. The value is expected to be a colon separated net:host:port.
func FlagSetManyVar ¶
FlagSetManyVar sets a slice of net.Addr by a flag in a flag.FlagSet. The values are expected to be comma separated list of net:host:port triples.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.