From a5c08a99c14e840f3e0d5c4fe83fa27961f72f7f Mon Sep 17 00:00:00 2001 From: Xi Xue Jia Date: Tue, 9 Apr 2019 16:05:07 +0800 Subject: [PATCH] This is a workaround to fix https://github.com/spf13/viper/issues/324 Waiting for https://github.com/spf13/viper/pull/673 to be merged --- viper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/viper.go b/viper.go index a3d37f8c2..74cafdfd0 100644 --- a/viper.go +++ b/viper.go @@ -1766,6 +1766,8 @@ func (v *Viper) AllSettings() map[string]interface{} { return m } +func (v *Viper) SetKeyDelim(delim string) { v.keyDelim = delim } + // SetFs sets the filesystem to use to read configuration. func SetFs(fs afero.Fs) { v.SetFs(fs) } func (v *Viper) SetFs(fs afero.Fs) {