1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 06:44:13 +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
func (c *IniConfigContainer) getdata(key string) string {
if len(key) == 0 {
if len(key) == 0 {
return ""
}
c.RLock()
c.RLock()
defer c.RUnlock()
var (
section, k string
sectionKey []string = strings.Split(strings.ToLower(key), "::")