Added Reset Function - viper - [fork] go viper port for 9front
 (HTM) git clone git@git.drkhsh.at/viper.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 25817ada5921b507db5ffc42f3afc6f09b853ac6
 (DIR) parent 8b744a9310de812fd324878121c8011b1aad0ea6
 (HTM) Author: spf13 <steve.francia@gmail.com>
       Date:   Mon,  7 Apr 2014 23:35:53 -0400
       
       Added Reset Function
       
       Diffstat:
         M viper.go                            |      15 +++++++++++++++
         M viper_test.go                       |      15 ---------------
       
       2 files changed, 15 insertions(+), 15 deletions(-)
       ---
 (DIR) diff --git a/viper.go b/viper.go
       @@ -385,3 +385,18 @@ func Debug() {
                fmt.Println("Override:")
                pretty.Println(override)
        }
       +
       +func Reset() {
       +        configPaths = nil
       +        configName = "config"
       +
       +        // extensions Supported
       +        SupportedExts = []string{"json", "toml", "yaml"}
       +        configFile = ""
       +        configType = ""
       +
       +        config = make(map[string]interface{})
       +        override = make(map[string]interface{})
       +        defaults = make(map[string]interface{})
       +        aliases = make(map[string]string)
       +}
 (DIR) diff --git a/viper_test.go b/viper_test.go
       @@ -43,21 +43,6 @@ var jsonExample = []byte(`{
            }
        }`)
        
       -func reset() {
       -        configPaths = nil
       -        configName = "config"
       -
       -        // extensions Supported
       -        SupportedExts = []string{"json", "toml", "yaml"}
       -        configFile = ""
       -        configType = ""
       -
       -        config = make(map[string]interface{})
       -        override = make(map[string]interface{})
       -        defaults = make(map[string]interface{})
       -        aliases = make(map[string]string)
       -}
       -
        func TestBasics(t *testing.T) {
                SetConfigFile("/tmp/config.yaml")
                assert.Equal(t, "/tmp/config.yaml", getConfigFile())