Documentation
¶
Overview ¶
Provides utilities to setup application's global configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig() *config.Config
LoadConfig is a syntax sugar that loads the content of config with values taken from environment variables and from default file location.
func LoadConfigFromEnv ¶
func LoadConfigFromEnv() *config.Config
LoadConfigFromEnv 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
func LoadConfigFromFile ¶
LoadConfigFromFile tries to add content of the YAML file to the config.Config.
Types ¶
This section is empty.