package
2.1.1
Repository: https://github.com/starudream/go-lib.git
Documentation: pkg.go.dev

# Functions

FlagVal examines a pflag.Flag and returns a typed value as an interface{} from the types that pflag supports.
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.
ProviderWithFlag takes pflag.FlagSet and a callback that takes *pflag.Flag and applies the callback to all items in the flagset.
ProviderWithValue works exactly the same as Provider except the callback takes a (key, value) with the variable name and value and allows their modification.

# Structs

Posflag implements a pflag command line provider.

# Interfaces

KoanfIntf is an interface that represents a small subset of methods used by this package from Koanf{}.