Skip to content

Commit

Permalink
feat: add http route Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fynntang committed Aug 29, 2023
1 parent 7e75138 commit c0ae0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-go-http/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var httpTemplate = `
{{$svrName := .ServiceName}}
{{- range .MethodSets}}
const Route{{$svrType}}{{.OriginalName}} = "{{.Path}}"
const Route{{$svrType}}{{.OriginalName}} = "{{.Path}}" {{- if ne .Comment ""}} {{.Comment}} {{- end}}
{{- end}}
type {{.ServiceType}}HTTPServer interface {
Expand Down

0 comments on commit c0ae0d5

Please sign in to comment.