1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 14:20:18 +00:00

mall fixes

This commit is contained in:
eyalpost
2017-04-24 02:35:04 +03:00
parent 08ea9b3339
commit 864693d2f8
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ var InBody MethodParamOption = func(p *MethodParam) {
func Default(defValue interface{}) MethodParamOption {
return func(p *MethodParam) {
if defValue != nil {
p.defValue = fmt.Sprintf("%v", defValue)
p.defValue = fmt.Sprint(defValue)
}
}
}