From 944b2650ed13d5c7010e6543f5c37f106ec7e57b Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Wed, 24 Oct 2018 14:56:12 +0800 Subject: [PATCH] fix key lookup --- goini.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/goini.go b/goini.go index 81d61bb..693d1f1 100644 --- a/goini.go +++ b/goini.go @@ -177,10 +177,6 @@ func (ini *GoINI) GetString(name string, key string, value string) string { if 0 == len(name) { name = ini.commonField } - if pos := strings.Index(key, "."); pos != -1 { - name = key[:pos] - key = key[pos+1:] - } if v, ok := ini.dataMap[name]; ok { if vv, ok := v[key]; ok { return vv