You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, We need to get the raw (original) comments to generate some go template files. But CommentGroup.Text does not get the raw (original) comments. This makes it difficult to add comments to the generated template file.
Thank you for your contribution to go! Have a good day!
The proposed Raw function does not return the original text: windows CR LF line endings have been replaced by "\n" , for example, and a /*...*/ comment at EOF would appear to have a spurious following newline.
Also, the Raw function is easy to write outside the go/ast package, and doesn't require any special intuition or knowledge.
Proposal Details
Sometimes, We need to get the raw (original) comments to generate some go template files. But CommentGroup.Text does not get the raw (original) comments. This makes it difficult to add comments to the generated template file.
Thank you for your contribution to go! Have a good day!
PR here: https://go-review.googlesource.com/c/go/+/579475
The text was updated successfully, but these errors were encountered: