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

Method SetConfigFile

viper.go:395–399  ·  viper.go::Viper.SetConfigFile
(in string)

Source from the content-addressed store, hash-verified

393func SetConfigFile(in string) { v.SetConfigFile(in) }
394
395func (v *Viper) SetConfigFile(in string) {
396 if in != "" {
397 v.configFile = in
398 }
399}
400
401// SetEnvPrefix defines a prefix that ENVIRONMENT variables will use.
402// E.g. if your prefix is "spf", the env registry will look for env

Callers 10

TestGetConfigFileFunction · 0.80
TestReadInConfigFunction · 0.80
TestWriteConfigTOMLFunction · 0.80
TestWriteConfigDotEnvFunction · 0.80
newViperWithConfigFileFunction · 0.80
SetConfigFileFunction · 0.80

Calls

no outgoing calls

Tested by 9

TestGetConfigFileFunction · 0.64
TestReadInConfigFunction · 0.64
TestWriteConfigTOMLFunction · 0.64
TestWriteConfigDotEnvFunction · 0.64
newViperWithConfigFileFunction · 0.64