mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:30:56 +00:00
Merge pull request #2032 from ShevYan/make-go-vet-pass
use keyed fields to pass go vet
This commit is contained in:
commit
a08e937cf0
@ -166,10 +166,10 @@ func genRouterCode(pkgRealpath string) {
|
|||||||
globalinfo = globalinfo + `
|
globalinfo = globalinfo + `
|
||||||
beego.GlobalControllerRouter["` + k + `"] = append(beego.GlobalControllerRouter["` + k + `"],
|
beego.GlobalControllerRouter["` + k + `"] = append(beego.GlobalControllerRouter["` + k + `"],
|
||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
"` + strings.TrimSpace(c.Method) + `",
|
Method: "` + strings.TrimSpace(c.Method) + `",
|
||||||
` + "`" + c.Router + "`" + `,
|
` + "Router: `" + c.Router + "`" + `,
|
||||||
` + allmethod + `,
|
AllowHTTPMethods: ` + allmethod + `,
|
||||||
` + params + `})
|
Params: ` + params + `})
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user