Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigFromFlags ¶
func DefaultConfigFromFlags(cfg interface{}) interface{}
DefaultConfigFromFlags will load default values into cfg by retrieving default values that are registered as flags.
cfg must implement either PrefixedConfigFlags or ConfigFlags.
Types ¶
type ConfigFlags ¶
ConfigFlags is an interface that will register flags that can control some object.
type PrefixedConfigFlags ¶
PrefixedConfigFlags is an interface that, given a prefix for flags and a flagset, will register flags that can control some object.
Click to show internal directories.
Click to hide internal directories.