MCPcopy
hub / github.com/spf13/viper / MustBindEnv

Method MustBindEnv

viper.go:1134–1138  ·  view source on GitHub ↗
(input ...string)

Source from the content-addressed store, hash-verified

1132func MustBindEnv(input ...string) { v.MustBindEnv(input...) }
1133
1134func (v *Viper) MustBindEnv(input ...string) {
1135 if err := v.BindEnv(input...); err != nil {
1136 panic(fmt.Sprintf("error while binding environment variable: %v", err))
1137 }
1138}
1139
1140// Given a key, find the value.
1141//

Callers 1

MustBindEnvFunction · 0.80

Calls 1

BindEnvMethod · 0.95

Tested by

no test coverage detected