Documentation
¶
Overview ¶
Package flag defines a few custom flags since stdlib/flags didn't.
Index ¶
- func StringSlice(name string, value []string, usage string) *[]string
- func StringSliceFS(f *flag.FlagSet, name string, value []string, usage string) *[]string
- func StringSliceVar(p *[]string, name string, value []string, usage string)
- func StringSliceVarFS(f *flag.FlagSet, p *[]string, name string, value []string, usage string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringSlice ¶
StringSlice defines a stringSlice flag with specified name, default value, and usage string. The return value is the address of a slice variable that stores the value of the flag.
func StringSliceFS ¶
StringSliceFS defines a stringSlice flag with specified name, default value, and usage string. The return value is the address of a slice that stores the value of the flag.
func StringSliceVar ¶
StringSliceVar defines a stringSlice flag with specified name, default value, and usage string. The argument p points to a string variable in which to store the value of the flag.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.