Documentation
¶
Index ¶
Constants ¶
View Source
const ( SettingsFolder = "." SettingsName = "settings" SettingsOverrideName = "settings_local" SettingsEnvPrefix = "app" )
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load use viper to load config read settings.{yaml/json/toml} and unmarshal to interface cfg settings_local will override config in settings support auto reload when file change auto read config from env with prefix 'APP_' and will auto convert "_" to "." for example APP_TELEGRAM_TOKEN will map to telegram.token avoid to use "_" in config name for better env reading
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.