Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load the configuration into the target from a yaml file and environment variables.
The boolean returned is true if the config file has been found, false otherwise.
It will look for dotenv files in the current directory. If no dotenvFiles are given, default ones will be used: .env and .env.local. target can implement the Processable interface to do any stuff after the config has been loaded.
Types ¶
type Processable ¶
type Processable interface {
PostLoad() error
}
Processable is an interface that can be implemented by the target of the Load function to do any stuff after a config has been loaded.
Click to show internal directories.
Click to hide internal directories.