Documentation ¶
Index ¶
Constants ¶
View Source
const ( YAML format = "yaml" JSON format = "json" TOML format = "toml" HCL format = "hcl" )
Variables ¶
View Source
var ( EnvDelimeter = "_" EnvSliceDelimeter = ";" )
Functions ¶
func AutoloadAndEnrichConfig ¶
AutoloadAndEnrichConfig takes a config file and a receiver and enriches the config with the value from env variables. @filePath: The path to the config file. @receiver: The receiver to parse the config file into.
By default the prefix is set to CFG.
func AutoloadAndEnrichConfigWithEnvPrefix ¶
func AutoloadAndEnrichConfigWithEnvPrefix(filePath string, prefix string, receiver interface{}) error
AutoloadAndEnrichConfig takes a config file and a receiver and enriches the config with the value from env variables. @filePath: The path to the config file. @receiver: The receiver to parse the config file into. @prefix: The prefix to use for the env variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.