mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 09:20:55 +00:00
gofmt
Signed-off-by: devYu <devysq@gmail.com>
This commit is contained in:
parent
14629c214b
commit
ccb61f0416
@ -206,7 +206,7 @@ func (c *IniConfigContainer) DefaultFloat(key string, defaultval float64) float6
|
||||
}
|
||||
|
||||
// String returns the string value for a given key.
|
||||
func (c *IniConfigContainer) String(key string) string {
|
||||
func (c *IniConfigContainer) String(key string) string {
|
||||
return c.getdata(key)
|
||||
}
|
||||
|
||||
@ -337,12 +337,11 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user