Documentation
¶
Overview ¶
Package flags provides a wrapper around pflag that provides a consistent way to access configuration values.
Index ¶
- type Flag
- func Bool(flags *pflag.FlagSet, name string, value bool, usage string) Flag[bool]
- func BoolP(flags *pflag.FlagSet, name, shorthand string, value bool, usage string) Flag[bool]
- func String(flags *pflag.FlagSet, name string, value string, usage string) Flag[string]
- func StringP(flags *pflag.FlagSet, name, shorthand string, value string, usage string) Flag[string]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type Flag[T any] struct { // contains filtered or unexported fields }
func BoolP ¶
BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash.
func StringP ¶
StringP is like String, but accepts a shorthand letter that can be used after a single dash.
Click to show internal directories.
Click to hide internal directories.