1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-05 23:00:18 +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

@ -7,10 +7,10 @@ import (
//MethodParam keeps param information to be auto passed to controller methods
type MethodParam struct {
name string
location paramLocation
required bool
defValue string
name string
location paramLocation
required bool
defaultValue string
}
type paramLocation byte
@ -57,8 +57,8 @@ func (mp *MethodParam) String() string {
case header:
options = append(options, "param.InHeader")
}
if mp.defValue != "" {
options = append(options, fmt.Sprintf(`param.Default("%s")`, mp.defValue))
if mp.defaultValue != "" {
options = append(options, fmt.Sprintf(`param.Default("%s")`, mp.defaultValue))
}
if len(options) > 0 {
result += ", "