mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-26 11:28:46 +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()
|
||
|
}
|