Documentation
¶
Index ¶
- func All(path ...string) map[string]any
- func Del(path string)
- func Exists(path string) bool
- func Files() []string
- func LoadEnv()
- func LoadFile(name string) error
- func LoadFlags(fs *pflag.FlagSet)
- func LoadMap(m map[string]any)
- func LoadStruct(v any, tag ...string)
- func LoadedFile() string
- func Raw(path ...string) map[string]any
- func Set(path string, value any)
- func Unmarshal(path string, o any) error
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadStruct ¶
func LoadedFile ¶
func LoadedFile() string
Types ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
internal
|
|
parsers/yaml
Package yaml implements a koanf.Parser that parses YAML bytes as conf maps.
|
Package yaml implements a koanf.Parser that parses YAML bytes as conf maps. |
providers/confmap
Package confmap implements a koanf.Provider that takes nested and flat map[string]interface{} config maps and provides them to koanf.
|
Package confmap implements a koanf.Provider that takes nested and flat map[string]interface{} config maps and provides them to koanf. |
providers/env
Package env implements a koanf.Provider that reads environment variables as conf maps.
|
Package env implements a koanf.Provider that reads environment variables as conf maps. |
providers/file
Package file implements a koanf.Provider that reads raw bytes from files on disk to be used with a koanf.Parser to parse into conf maps.
|
Package file implements a koanf.Provider that reads raw bytes from files on disk to be used with a koanf.Parser to parse into conf maps. |
providers/posflag
Package posflag implements a koanf.Provider that reads commandline parameters as conf maps using spf13/pflag, a POSIX compliant alternative to Go's stdlib flag package.
|
Package posflag implements a koanf.Provider that reads commandline parameters as conf maps using spf13/pflag, a POSIX compliant alternative to Go's stdlib flag package. |
providers/structs
Package structs implements a koanf.Provider that takes a struct and tag and returns a nested config map (using fatih/structs) to provide it to koanf.
|
Package structs implements a koanf.Provider that takes a struct and tag and returns a nested config map (using fatih/structs) to provide it to koanf. |
Click to show internal directories.
Click to hide internal directories.