1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 07:10:39 +00:00

Merge remote-tracking branch 'astaxie/master'

This commit is contained in:
傅小黑
2013-12-24 21:59:37 +08:00
2 changed files with 4 additions and 1 deletions

View File

@ -166,6 +166,9 @@ func (c *IniConfigContainer) Set(key, value string) error {
section = DEFAULT_SECTION
k = sectionkey[0]
}
if _, ok := c.data[section]; !ok {
c.data[section] = make(map[string]string)
}
c.data[section][k] = value
return nil
}