1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 16:00:19 +00:00

defValue -> defaultValue

This commit is contained in:
Eyal Post
2017-05-11 17:58:25 +03:00
parent d3a16dca85
commit cb4f252a06
3 changed files with 10 additions and 13 deletions

View File

@ -28,10 +28,10 @@ var InBody MethodParamOption = func(p *MethodParam) {
}
// Default provides a default value for the http param
func Default(defValue interface{}) MethodParamOption {
func Default(defaultValue interface{}) MethodParamOption {
return func(p *MethodParam) {
if defValue != nil {
p.defValue = fmt.Sprint(defValue)
if defaultValue != nil {
p.defaultValue = fmt.Sprint(defaultValue)
}
}
}