accounts-profiles-endpoint/internal/cmd/init.go

16 lines
202 B
Go
Raw Normal View History

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