Skip to content

Commit

Permalink
fuck template format
Browse files Browse the repository at this point in the history
  • Loading branch information
alimy committed Mar 6, 2020
1 parent 3fc59a1 commit f55ab9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/generator/templates/gin_iface.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ func Register{{.TypeName}}Servant(e *gin.Engine, s {{.TypeName}}) {
router.Use(middlewares...)
{{end}}
// register routes info to router
{{range .Fields}}{{if notHttpAny .HttpMethod }}router.Handle({{.HttpMethod}}, "{{.Path}}", s.{{.MethodName}}){{else}}router.Any("{{.Path}}", s.{{.MethodName}}){{end}}
{{range .Fields}}{{if notHttpAny .HttpMethod }} router.Handle({{.HttpMethod}}, "{{.Path}}", s.{{.MethodName}}){{else}} router.Any("{{.Path}}", s.{{.MethodName}}){{end}}
{{end}}
}
8 changes: 4 additions & 4 deletions internal/generator/templates_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f55ab9c

Please sign in to comment.