1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 17:10:18 +00:00

update config to change section . to ::

This commit is contained in:
astaxie
2013-12-09 23:54:35 +08:00
parent 690ecb8168
commit b97d9896a4
2 changed files with 5 additions and 5 deletions

View File

@ -154,7 +154,7 @@ func (c *IniConfigContainer) Set(key, value string) error {
var section, k string
key = strings.ToLower(key)
sectionkey := strings.Split(key, ".")
sectionkey := strings.Split(key, "::")
if len(sectionkey) >= 2 {
section = sectionkey[0]
k = sectionkey[1]
@ -184,7 +184,7 @@ func (c *IniConfigContainer) getdata(key string) string {
var section, k string
key = strings.ToLower(key)
sectionkey := strings.Split(key, ".")
sectionkey := strings.Split(key, "::")
if len(sectionkey) >= 2 {
section = sectionkey[0]
k = sectionkey[1]