mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 10:30:55 +00:00
miswrite a type of word
This commit is contained in:
parent
39b2e07dc8
commit
27a02082a3
@ -54,7 +54,7 @@ func (c *JsonConfigContainer) Int64(key string) (int64, error) {
|
|||||||
if v, ok := c.data[key].(float64); ok {
|
if v, ok := c.data[key].(float64); ok {
|
||||||
return int64(v), nil
|
return int64(v), nil
|
||||||
}
|
}
|
||||||
return 0, errors.New("not bool value")
|
return 0, errors.New("not int64 value")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *JsonConfigContainer) Float(key string) (float64, error) {
|
func (c *JsonConfigContainer) Float(key string) (float64, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user