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

Function SetEnvPrefix

viper.go:404–404  ·  view source on GitHub ↗

SetEnvPrefix defines a prefix that ENVIRONMENT variables will use. E.g. if your prefix is "spf", the env registry will look for env variables that start with "SPF_".

(in string)

Source from the content-addressed store, hash-verified

402// E.g. if your prefix is "spf", the env registry will look for env
403// variables that start with "SPF_".
404func SetEnvPrefix(in string) { v.SetEnvPrefix(in) }
405
406func (v *Viper) SetEnvPrefix(in string) {
407 if in != "" {

Callers

nothing calls this directly

Calls 1

SetEnvPrefixMethod · 0.80

Tested by

no test coverage detected