mirror of https://github.com/spf13/viper.git
Expose configPaths via ConfigPaths() and v.ConfigPaths()
This commit is contained in:
parent
651d9d916a
commit
9ca9d6745d
4
viper.go
4
viper.go
|
@ -1416,6 +1416,10 @@ func (v *Viper) AllSettings() map[string]interface{} {
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ConfigPaths returns all config paths that Viper searches for config files in.
|
||||||
|
func ConfigPaths() []string { return v.configPaths }
|
||||||
|
func (v *Viper) ConfigPaths() []string { return v.configPaths }
|
||||||
|
|
||||||
// SetFs sets the filesystem to use to read configuration.
|
// SetFs sets the filesystem to use to read configuration.
|
||||||
func SetFs(fs afero.Fs) { v.SetFs(fs) }
|
func SetFs(fs afero.Fs) { v.SetFs(fs) }
|
||||||
func (v *Viper) SetFs(fs afero.Fs) {
|
func (v *Viper) SetFs(fs afero.Fs) {
|
||||||
|
|
Loading…
Reference in New Issue