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:
@ -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]
|
||||
|
Reference in New Issue
Block a user