Documentation
¶
Index ¶
Constants ¶
View Source
const ( InfoLevel = "info" DebugLevel = "debug" WarnLevel = "warn" )
View Source
const ( ExtYaml = "YAML" ExtJson = "JSON" ExtUnsupported = "unsupported" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CfgDir ¶
type CfgDir struct {
Path string
}
CfgDir enables config to be loaded from a conf.d directory, note that directory values will take precedence over single file
type CfgFile ¶
type CfgFile struct {
Path string
}
CfgFile enables config to be loaded from a single file
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
type Defaults ¶
type Defaults struct {
Item any
}
Defaults enables to provide a set of default values to the configuration
type EnvVar ¶
type EnvVar struct {
Prefix string
}
EnvVar enables to load config using an env vars note that Envs will take precedence over file persisted values
Click to show internal directories.
Click to hide internal directories.