mirror of
https://github.com/elyby/accounts-profiles-endpoint.git
synced 2024-12-02 03:31:00 +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
|
||
|
}
|