From c0ae0d58810e4d17cc9c452d799ae05b4052de00 Mon Sep 17 00:00:00 2001 From: FynnTang Date: Tue, 29 Aug 2023 18:14:19 +0800 Subject: [PATCH] feat: add http route Comment --- protoc-gen-go-http/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protoc-gen-go-http/template.go b/protoc-gen-go-http/template.go index 5df9844..0fa96c2 100644 --- a/protoc-gen-go-http/template.go +++ b/protoc-gen-go-http/template.go @@ -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 {