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

Function AddConfigPath

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

AddConfigPath adds a path for Viper to search for the config file in. Can be called multiple times to define multiple search paths.

(in string)

Source from the content-addressed store, hash-verified

456// AddConfigPath adds a path for Viper to search for the config file in.
457// Can be called multiple times to define multiple search paths.
458func AddConfigPath(in string) { v.AddConfigPath(in) }
459
460func (v *Viper) AddConfigPath(in string) {
461 if v.finder != nil {

Callers

nothing calls this directly

Calls 1

AddConfigPathMethod · 0.80

Tested by

no test coverage detected