mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
856b5aadb1
* reactor alert * optimize * add test case * update the target directory in case proto contains option * fix missing comments and format code
11 lines
173 B
Go
11 lines
173 B
Go
package parser
|
|
|
|
import "github.com/emicklei/proto"
|
|
|
|
func GetComment(comment *proto.Comment) string {
|
|
if comment == nil {
|
|
return ""
|
|
}
|
|
return "// " + comment.Message()
|
|
}
|