mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:50:54 +00:00
mall fixes
This commit is contained in:
parent
08ea9b3339
commit
864693d2f8
2
cache/conv.go
vendored
2
cache/conv.go
vendored
@ -28,7 +28,7 @@ func GetString(v interface{}) string {
|
|||||||
return string(result)
|
return string(result)
|
||||||
default:
|
default:
|
||||||
if v != nil {
|
if v != nil {
|
||||||
return fmt.Sprintf("%v", result)
|
return fmt.Sprint(result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
|
@ -19,7 +19,7 @@ var InBody MethodParamOption = func(p *MethodParam) {
|
|||||||
func Default(defValue interface{}) MethodParamOption {
|
func Default(defValue interface{}) MethodParamOption {
|
||||||
return func(p *MethodParam) {
|
return func(p *MethodParam) {
|
||||||
if defValue != nil {
|
if defValue != nil {
|
||||||
p.defValue = fmt.Sprintf("%v", defValue)
|
p.defValue = fmt.Sprint(defValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user