Files
go-zero/tools/goctl/rpc/parser/comment.go

11 lines
173 B
Go
Raw Normal View History

package parser
import "github.com/emicklei/proto"
func GetComment(comment *proto.Comment) string {
if comment == nil {
return ""
}
return "// " + comment.Message()
}