go/ast.Comment.Text (field)
10 uses
go/ast (current package)
ast.go#L70: Text string // comment text (excluding '\n' for //-style comments)
ast.go#L74: func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
ast.go#L107: comments[i] = c.Text
ast.go#L1125: if strings.Contains(comment.Text, prefix) {
ast.go#L1126: for _, line := range strings.Split(comment.Text, "\n") {
commentmap.go#L276: buf.WriteString(comment.Text)
go/build
read.go#L499: if strings.HasPrefix(c.Text, "//go:") {
read.go#L500: info.directives = append(info.directives, Directive{c.Text, info.fset.Position(c.Slash)})
go/doc
reader.go#L548: if noteCommentRx.MatchString(c.Text) {
go/parser
parser.go#L192: comment = &ast.Comment{Slash: p.pos, Text: p.lit}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)