From 9418b243d07c4f54bb92688e43973ab15e42e23a Mon Sep 17 00:00:00 2001 From: Ming Deng Date: Tue, 22 Dec 2020 21:19:13 +0800 Subject: [PATCH] Fix generated code 4384 --- parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.go b/parser.go index 3a311894..5e6b9111 100644 --- a/parser.go +++ b/parser.go @@ -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 + `,