Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/pkgsite: const block comment not rendered in some cases #38699
What is the URL of the page with the issue?
What did you expect to see?
The code actually have comments on them, but they are not rendered in go.dev.
One thing to note is that they are not rendered on godoc.org either. I think it might has something to do with the long string const?
Thanks for reporting.
This is due to a limitation of the algorithm used to trim excessively large string literals and slices (see relevant code here). Documentation rendering on pkg.go.dev used the same algorithm as on godoc.org, so it was equally affected.
I've looked into it, and it is possible to resolve this issue. I'll send a fix.