Commit a08e937c authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2032 from ShevYan/make-go-vet-pass

use keyed fields to pass go vet
parents 1f68e5a7 9ab5f6d8
......@@ -166,10 +166,10 @@ func genRouterCode(pkgRealpath string) {
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 + `})
`
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment