Documentation ¶
Index ¶
- Constants
- func AddString(fs *flag.FlagSet, opt *string, short, long, value string)
- func AddUint64(fs *flag.FlagSet, opt *uint64, short, long string, value uint64)
- func CheckString(optionName, value string, err error) error
- func CheckUint64(optionName string, value uint64, err error) error
- func New(args []string, usage func(), set func(*flag.FlagSet)) *flag.FlagSet
Constants ¶
View Source
const ( DefaultString = "default string" DefaultUint64 = 18446744073709551615 )
Variables ¶
This section is empty.
Functions ¶
func AddString ¶
AddString adds a string option to a flag set
func AddUint64 ¶
AddUint64 adds an uint64 option to a flag set
func CheckString ¶
CheckString checks that a string option has a non-default value
func CheckUint64 ¶
CheckUint64 checks that an uint64 option has a non-default value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.