This commit is contained in:
steven carpenter 2025-07-22 02:55:00 -04:00
commit d5762330da
23 changed files with 718 additions and 0 deletions

View file

@ -0,0 +1,19 @@
package config
import (
"fmt"
"github.com/spf13/viper"
)
func Init() {
viper.SetConfigName("config") // config.yaml
viper.SetConfigType("yaml")
viper.AddConfigPath(".")
err := viper.ReadInConfig()
if err != nil {
fmt.Println("No config file found; using defaults.")
}
viper.SetDefault("app.theme", "dark")
}