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

Function SetConfigFile

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

SetConfigFile explicitly defines the path, name and extension of the config file. Viper will use this and not check any of the config paths.

(in string)

Source from the content-addressed store, hash-verified

391// SetConfigFile explicitly defines the path, name and extension of the config file.
392// Viper will use this and not check any of the config paths.
393func SetConfigFile(in string) { v.SetConfigFile(in) }
394
395func (v *Viper) SetConfigFile(in string) {
396 if in != "" {

Callers

nothing calls this directly

Calls 1

SetConfigFileMethod · 0.80

Tested by

no test coverage detected