16 lines
202 B
Go
Raw Normal View History

2024-09-22 15:16:25 +02:00
package cmd
import (
"strings"
"github.com/spf13/viper"
)
func initConfig() *viper.Viper {
v := viper.GetViper()
v.AutomaticEnv()
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
return v
}