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

Function ReadConfig

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

ReadConfig will read a configuration file, setting existing keys to nil if the key does not exist in the file.

(in io.Reader)

Source from the content-addressed store, hash-verified

1568// ReadConfig will read a configuration file, setting existing keys to nil if the
1569// key does not exist in the file.
1570func ReadConfig(in io.Reader) error { return v.ReadConfig(in) }
1571
1572func (v *Viper) ReadConfig(in io.Reader) error {
1573 config := make(map[string]any)

Callers

nothing calls this directly

Calls 1

ReadConfigMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…