mirror of
https://github.com/spf13/viper
synced 2024-11-20 03:47:05 +00:00
Expose configPaths via ConfigPaths() and v.ConfigPaths()
This commit is contained in:
parent
651d9d916a
commit
9ca9d6745d
1 changed files with 4 additions and 0 deletions
4
viper.go
4
viper.go
|
@ -1416,6 +1416,10 @@ func (v *Viper) AllSettings() map[string]interface{} {
|
|||
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.
|
||||
func SetFs(fs afero.Fs) { v.SetFs(fs) }
|
||||
func (v *Viper) SetFs(fs afero.Fs) {
|
||||
|
|
Loading…
Reference in a new issue