1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 15:30:40 +00:00
This commit is contained in:
astaxie
2014-04-11 16:08:43 +08:00
parent 05e5baaa9f
commit 4245521660
24 changed files with 10 additions and 47 deletions

View File

@ -53,7 +53,6 @@ func (c *JsonConfigContainer) Bool(key string) (bool, error) {
} else {
return false, errors.New("not exist key:" + key)
}
return false, nil
}
// Int returns the integer value for a given key.
@ -68,7 +67,6 @@ func (c *JsonConfigContainer) Int(key string) (int, error) {
} else {
return 0, errors.New("not exist key:" + key)
}
return 0, nil
}
// Int64 returns the int64 value for a given key.
@ -83,7 +81,6 @@ func (c *JsonConfigContainer) Int64(key string) (int64, error) {
} else {
return 0, errors.New("not exist key:" + key)
}
return 0, nil
}
// Float returns the float value for a given key.
@ -98,7 +95,6 @@ func (c *JsonConfigContainer) Float(key string) (float64, error) {
} else {
return 0.0, errors.New("not exist key:" + key)
}
return 0.0, nil
}
// String returns the string value for a given key.
@ -113,7 +109,6 @@ func (c *JsonConfigContainer) String(key string) string {
} else {
return ""
}
return ""
}
// Strings returns the []string value for a given key.
@ -137,7 +132,6 @@ func (c *JsonConfigContainer) DIY(key string) (v interface{}, err error) {
} else {
return nil, errors.New("not exist key")
}
return nil, nil
}
// section.key or key