Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValueString ¶
KeyValueString is an implementation of flag.Value that creates a map from the user's argument prior to storing it.
func (*KeyValueString) Set ¶
func (s *KeyValueString) Set(input string) error
Set creates a key-value map of the input string. The input string must be in the format of KEY1=AB,KEY2=CD
func (KeyValueString) String ¶
func (s KeyValueString) String() string
String returns string representation of KeyValueString. The format of the return value is "KEY1=AB,KEY2=CD"
type LowerTrimmedString ¶
type LowerTrimmedString string
LowerTrimmedString is an implementation of flag.Value that trims whitespace and converts to lowercase the incoming argument prior to storing it.
func (*LowerTrimmedString) Set ¶
func (s *LowerTrimmedString) Set(input string) error
Set trims whitespace from input string and converts the string to lowercase, then stores in LowerTrimmedString.
func (LowerTrimmedString) String ¶
func (s LowerTrimmedString) String() string
String returns string representation of LowerTrimmedString.
type StringArrayFlag ¶
type StringArrayFlag []string
StringArrayFlag represents a CLI flag with multiple string values
func (*StringArrayFlag) Set ¶
func (i *StringArrayFlag) Set(value string) error
Set adds a string value to StringArrayFlag
func (*StringArrayFlag) String ¶
func (i *StringArrayFlag) String() string
String returns string representation of StringArrayFlag
type TrimmedString ¶
type TrimmedString string
TrimmedString is an implementation of flag.Value that trims whitespace from the incoming argument prior to storing it.
func (*TrimmedString) Set ¶
func (s *TrimmedString) Set(input string) error
Set trims whitespace from input string and stores in TrimmedString.
func (TrimmedString) String ¶
func (s TrimmedString) String() string
String returns string representation of TrimmedString.