Documentation ¶
Overview ¶
Package basicflag implements a koanf.Provider that reads commandline parameters as conf maps using the Go's flag package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pflag ¶
type Pflag struct {
// contains filtered or unexported fields
}
Pflag implements a pflag command line provider.
func Provider ¶
Provider returns a commandline flags provider that returns a nested map[string]interface{} of environment variable where the nesting hierarchy of keys are defined by delim. For instance, the delim "." will convert the key `parent.child.key: 1` to `{parent: {child: {key: 1}}}`.
Click to show internal directories.
Click to hide internal directories.