-
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
proposal: godoc: distinguish type interfaces from other types #23256
Comments
Rather than more segregation on types based on some heuristics which are valid sometimes and not valid othertimes, perhaps support for user-defined sections is a better approach (#18342)? (The "hot-linking" feature that is being implemented as part of that issue will help here as well). |
Would #20131 help? |
That sounds similar to #5860 as well, though I'm not sure if that included the index. |
The struct heading does not list all the fields in the struct. Per #18342 (comment), let's keep focusing on that as the answer and leave the index an index. |
When your package contains lots of interfaces a user will have a hard time figuring out how to use your package based on the generated godoc's index
Example: https://godoc.org/github.com/nats-io/go-nats-streaming
Golang standard library solves this by including examples on each interface but without a example good luck figuring out how to use instances of the interface
Example: https://golang.org/pkg/net/http/#Hijacker
Proposal:
Distinguish interface types from the other types, color, bold, blinking :P, symbols, extra text,... Anything is fine as long it's more clear what types are interfaces and which one are not
Add the interface function declarations in the index so you have a quick hint what the interface instance is suppose to be doing
The text was updated successfully, but these errors were encountered: