mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:20:56 +00:00
gofmt
Signed-off-by: devYu <devysq@gmail.com>
This commit is contained in:
parent
14629c214b
commit
ccb61f0416
@ -337,13 +337,12 @@ func (c *IniConfigContainer) DIY(key string) (v interface{}, err error) {
|
|||||||
|
|
||||||
// section.key or key
|
// section.key or key
|
||||||
func (c *IniConfigContainer) getdata(key string) string {
|
func (c *IniConfigContainer) getdata(key string) string {
|
||||||
if len(key) == 0 {
|
if len(key) == 0 {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
c.RLock()
|
c.RLock()
|
||||||
defer c.RUnlock()
|
defer c.RUnlock()
|
||||||
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
section, k string
|
section, k string
|
||||||
sectionKey []string = strings.Split(strings.ToLower(key), "::")
|
sectionKey []string = strings.Split(strings.ToLower(key), "::")
|
||||||
|
Loading…
Reference in New Issue
Block a user