Documentation ¶
Overview ¶
Provides utilities to setup application's global configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromFile ¶
LoadConfigFromFile tries to load YAML files and create config.Config.
func LoadFromEnv ¶ added in v1.1.22
func LoadFromEnv() *config.Config
LoadFromEnv loads environment variables into the new config.Config and returns it. This function loads all environment variables available to the process and converts them into hierarchical structure. Underscore symbol '_' is used to split variable name into keys, which are also converted to lowercase. For example: "VAR_NAME" will become: var.name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.