comment.go 173 B

12345678910
  1. package parser
  2. import "github.com/emicklei/proto"
  3. func GetComment(comment *proto.Comment) string {
  4. if comment == nil {
  5. return ""
  6. }
  7. return "// " + comment.Message()
  8. }