From d5c03f5b8f577a702a76f735ec490488bcf62785 Mon Sep 17 00:00:00 2001 From: Liaodd Date: Mon, 10 Apr 2017 11:30:23 +0800 Subject: [PATCH] Update ini.go change the key to lowercase when set a new key for ini configer --- config/ini.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ini.go b/config/ini.go index 27220f90..8fdbc2ea 100644 --- a/config/ini.go +++ b/config/ini.go @@ -416,7 +416,7 @@ func (c *IniConfigContainer) Set(key, value string) error { var ( section, k string - sectionKey = strings.Split(key, "::") + sectionKey = strings.Split(strings.ToLower(key), "::") ) if len(sectionKey) >= 2 {