Expose configPaths via ConfigPaths() and v.ConfigPaths()

This commit is contained in:
Thordur Bjornsson 2016-11-23 22:31:44 +01:00
parent 651d9d916a
commit 9ca9d6745d
1 changed files with 4 additions and 0 deletions

View File

@ -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) {