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#L1132: if strings.Contains(comment.Text, prefix) {
ast.go#L1133: for line := range strings.SplitSeq(comment.Text, "\n") {
commentmap.go#L276: buf.WriteString(comment.Text)
go/build
read.go#L360: if strings.HasPrefix(c.Text, "//go:") {
read.go#L361: 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#L198: comment = &ast.Comment{Slash: p.pos, Text: p.lit}
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)