1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 20:20:56 +00:00
Signed-off-by: devYu <devysq@gmail.com>
This commit is contained in:
xianyu 2014-08-25 21:31:53 +08:00
parent 14629c214b
commit ccb61f0416

View File

@ -337,13 +337,12 @@ func (c *IniConfigContainer) DIY(key string) (v interface{}, err error) {
// section.key or key // section.key or key
func (c *IniConfigContainer) getdata(key string) string { func (c *IniConfigContainer) getdata(key string) string {
if len(key) == 0 { if len(key) == 0 {
return "" return ""
} }
c.RLock() c.RLock()
defer c.RUnlock() defer c.RUnlock()
var ( var (
section, k string section, k string
sectionKey []string = strings.Split(strings.ToLower(key), "::") sectionKey []string = strings.Split(strings.ToLower(key), "::")