Skip to content

Commit

Permalink
Update parser.go
Browse files Browse the repository at this point in the history
修复genRouterCode方法解析  router 注释(// @router) 单双引号引起的bug
  • Loading branch information
zwei0526 authored Apr 26, 2020
1 parent 8f3d1c5 commit ab33d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func genRouterCode(pkgRealpath string) {
beego.GlobalControllerRouter["` + k + `"] = append(beego.GlobalControllerRouter["` + k + `"],
beego.ControllerComments{
Method: "` + strings.TrimSpace(c.Method) + `",
` + "Router: `" + c.Router + "`" + `,
` + `Router: "` + c.Router + `"` + `,
AllowHTTPMethods: ` + allmethod + `,
MethodParams: ` + methodParams + `,
Filters: ` + filters + `,
Expand Down

0 comments on commit ab33d68

Please sign in to comment.