Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
ReadConfig reads the TOML configuration file in predefined standard paths into v, returns an error if v.Validate() returns error, or some configuration file reading error happens. v is the destination struct, configName is the name used for the configuration file. ReadConfig will not return an error for missing configuration file, since the fields contained in v can be also read from environment variables.
Types ¶
Click to show internal directories.
Click to hide internal directories.