-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/pkgsite: package-scope exported variables display full source code of function bodies #40360
Comments
Why are those variables instead of functions? Assuming there is a reason, you can do this https://play.golang.org/p/TQsCdJPm2tB |
Could you please provide an example or an explanation of what you expected to see on the documentation page? |
I don't know how to improve the formatting but i'm sure the current state is ugly and too verbose. |
Rather than changing the tooling, ISTM that the offending variable could be rewritten as a function and that would solve the issue. |
@pjebs the docs are ugly because your code is ugly. |
I would ask everyone to tone down the rhetoric, please. One possible solution is for godoc not to print function bodies. It could replace them with (say) |
/cc @dmitshur |
This bug is still present in pkgsite: https://pkg.go.dev/github.com/rocketlaunchr/dataframe-go/forecast/evaluation |
For my package: https://github.com/rocketlaunchr/dataframe-go, the godoc page for Variables of func is ridiculous.
It is so ridiculous, I can't explain it in words here.
See: https://godoc.org/github.com/rocketlaunchr/dataframe-go/forecast/evaluation
/cc @dmitshur
The text was updated successfully, but these errors were encountered: