mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-15 02:40:01 +08:00
11 lines
165 B
Go
11 lines
165 B
Go
|
|
package parser
|
||
|
|
|
||
|
|
import "github.com/emicklei/proto"
|
||
|
|
|
||
|
|
func GetComment(comment *proto.Comment) string {
|
||
|
|
if comment == nil {
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
return comment.Message()
|
||
|
|
}
|