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

Function ReadInConfig

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

ReadInConfig will discover and load the configuration file from disk and key/value stores, searching in one of the defined paths.

()

Source from the content-addressed store, hash-verified

1514// ReadInConfig will discover and load the configuration file from disk
1515// and key/value stores, searching in one of the defined paths.
1516func ReadInConfig() error { return v.ReadInConfig() }
1517
1518func (v *Viper) ReadInConfig() error {
1519 v.logger.Info("attempting to read in config file")

Callers

nothing calls this directly

Calls 1

ReadInConfigMethod · 0.80

Tested by

no test coverage detected