mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 22:20:50 +00:00
Merge remote-tracking branch 'astaxie/master'
This commit is contained in:
commit
6f3803ce8c
2
beego.go
2
beego.go
@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
// beego web framework version.
|
||||
const VERSION = "1.0.0"
|
||||
const VERSION = "1.0.1"
|
||||
|
||||
// Router adds a patterned controller handler to BeeApp.
|
||||
// it's an alias method of App.Router.
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user