use keyed fields to pass go vet

This commit is contained in:
shev_yan 2016-07-06 12:53:47 +08:00
parent 88c5dfa6ea
commit 9ab5f6d808
1 changed files with 4 additions and 4 deletions

View File

@ -164,10 +164,10 @@ func genRouterCode() {
globalinfo = globalinfo + `
beego.GlobalControllerRouter["` + k + `"] = append(beego.GlobalControllerRouter["` + k + `"],
beego.ControllerComments{
"` + strings.TrimSpace(c.Method) + `",
` + "`" + c.Router + "`" + `,
` + allmethod + `,
` + params + `})
Method: "` + strings.TrimSpace(c.Method) + `",
` + "Router: `" + c.Router + "`" + `,
AllowHTTPMethods: ` + allmethod + `,
Params: ` + params + `})
`
}
}