On Sun, 2022-11-06 at 11:55 -0800, 'Christian Stewart' via golang-nuts
wrote:
>  - Why does the comment not appear unless I put a space before? (in
> ast CommentMap)

This is explained here https://pkg.go.dev/go/ast#CommentGroup.Text

> Comment directives like "//line" and "//go:noinline" are also
removed.

>  - What's the best way to detect these comments?

You can interact directly with the data in the CommentGroup struct List
field.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/55814b2a4d8c562b0b995f8b64118bf3fa65b1ae.camel%40kortschak.io.

Reply via email to