bubblewand/templates/config/config.go.tmpl
2025-07-22 02:55:00 -04:00

19 lines
323 B
Cheetah

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")
}