mirror of
https://github.com/elyby/accounts-profiles-endpoint.git
synced 2024-12-22 13:09:51 +05:30
16 lines
202 B
Go
16 lines
202 B
Go
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
|
"github.com/spf13/viper"
|
||
|
)
|
||
|
|
||
|
func initConfig() *viper.Viper {
|
||
|
v := viper.GetViper()
|
||
|
v.AutomaticEnv()
|
||
|
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
||
|
|
||
|
return v
|
||
|
}
|