Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintFlags ¶ added in v1.10.0
PrintFlags logs the flags in the flagset
Types ¶
type IPPortVar ¶ added in v1.12.0
type IPPortVar struct {
Val *string
}
IPPortVar is used for validating a command line option that represents an IP and a port. It implements the pflag.Value interface
type IPVar ¶ added in v1.12.0
type IPVar struct {
Val *string
}
IPVar is used for validating a command line option that represents an IP. It implements the pflag.Value interface
type PortRangeVar ¶ added in v1.12.0
type PortRangeVar struct {
Val *string
}
PortRangeVar is used for validating a command line option that represents a port range. It implements the pflag.Value interface
func (PortRangeVar) Set ¶ added in v1.12.0
func (v PortRangeVar) Set(s string) error
Set sets the flag value
func (PortRangeVar) String ¶ added in v1.12.0
func (v PortRangeVar) String() string
String returns the flag value
func (PortRangeVar) Type ¶ added in v1.12.0
func (v PortRangeVar) Type() string
Type gets the flag type
Click to show internal directories.
Click to hide internal directories.