diff --git a/ini.go b/ini.go index 43b5d0c..ecb9653 100644 --- a/ini.go +++ b/ini.go @@ -7,6 +7,8 @@ import ( func iniGet(key string) string { + key = strings.ToLower(key) + names := cfg.SectionStrings() for _, section := range names[1:] { @@ -22,6 +24,7 @@ func iniGet(key string) string { func iniSet(key, value string) error { title := strings.Title(value) + key = strings.ToLower(key) _, err := cfg.Section(title).NewKey(key, "")