Hi all, I'm trying to use packages.Load to parse the following comment:
// Thing does something. // //my:value do-something I'm trying to parse the my:value comment similar to go:embed. Interestingly the comment does not appear in the AST unless I put a space: // my:value do-something My questions are: - Why does the comment not appear unless I put a space before? (in ast CommentMap) - What's the best way to detect these comments? Thanks, Christian Stewart -- 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/2a254c84-17d1-45f3-8e07-9d30347edaa1n%40googlegroups.com.