From 5b0b926e3dd4bd9bc75a2b9fac23279c9fae2d9f Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 22 Jan 2015 00:43:42 -0700 Subject: [PATCH] :%s/insensativiseMap/insensitiviseMap/g --- util.go | 4 ++-- viper.go | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/util.go b/util.go index f49fa43..72b47fb 100644 --- a/util.go +++ b/util.go @@ -25,7 +25,7 @@ import ( "gopkg.in/yaml.v2" ) -func insensativiseMap(m map[string]interface{}) { +func insensitiviseMap(m map[string]interface{}) { for key, val := range m { lower := strings.ToLower(key) if key != lower { @@ -137,5 +137,5 @@ func marshallConfigReader(in io.Reader, c map[string]interface{}, configType str } } - insensativiseMap(c) + insensitiviseMap(c) } diff --git a/viper.go b/viper.go index 750406b..9b7489f 100644 --- a/viper.go +++ b/viper.go @@ -361,7 +361,7 @@ func (v *viper) Marshal(rawVal interface{}) error { return err } - v.insensativiseMaps() + v.insensitiviseMaps() return nil } @@ -612,11 +612,11 @@ func (v *viper) marshalReader(in io.Reader, c map[string]interface{}) { marshallConfigReader(in, c, v.getConfigType()) } -func (v *viper) insensativiseMaps() { - insensativiseMap(v.config) - insensativiseMap(v.defaults) - insensativiseMap(v.override) - insensativiseMap(v.kvstore) +func (v *viper) insensitiviseMaps() { + insensitiviseMap(v.config) + insensitiviseMap(v.defaults) + insensitiviseMap(v.override) + insensitiviseMap(v.kvstore) } // retrieve the first found remote configuration