Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppName = "workfort" EnvPrefix = "WORKFORT" UserConfigFileName = "config" LocalConfigFileName = "workfort" ConfigType = "yaml" )
Variables ¶
This section is empty.
Functions ¶
func GetLogLevel ¶
func GetLogLevel() string
func InitViper ¶
func InitViper()
InitViper sets up Viper with defaults and environment variable support. Called once during application init(), before directories are created.
func LoadConfig ¶
func LoadConfig() error
LoadConfig reads config files in precedence order. Precedence: ENV > ./workfort.yaml > ~/.config/workfort/config.yaml > defaults
func SaveSetting ¶
SaveSetting sets a key in viper and persists it to the user config file.
Types ¶
Click to show internal directories.
Click to hide internal directories.