mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
15 lines
218 B
Go
15 lines
218 B
Go
package internal
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
var EnvVarReplacer = strings.NewReplacer(".", "_", "-", "_")
|
|
|
|
func BindEnv(v *viper.Viper) {
|
|
v.SetEnvKeyReplacer(EnvVarReplacer)
|
|
v.AutomaticEnv()
|
|
}
|