mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 20:51:29 +00:00
use keyed fields to pass go vet
This commit is contained in:
parent
88c5dfa6ea
commit
9ab5f6d808
@ -164,10 +164,10 @@ func genRouterCode() {
|
|||||||
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