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
I expect some way to view docs for identifiers that are guarded by build constraints and the file to be listed is source files. Maybe something similar to how the official language docs can call out what version of Go an identifier was added in or a dropdown to select constraints? This could also be useful if a Windows version of a function has slightly different docs than the linux version.
What did you see instead?
I could not view the docs for my constrained function. Nor could I see constrained.go in the list of Source Files.
Additional context
This is sort of an off-shoot of some of the chatter in #34409. A suggestion was made to hide identifiers with build constraints. To me this would only be viable if developers could see those identifiers in documentation easily.
The text was updated successfully, but these errors were encountered:
This isn't true of pkgsite, so pkgsite issues need not be in the proposal process.
Spoke to @julieqiu about this one and she said that GOOS/GOARCH are handled and that probably arbitrary build tags are too much work for too little benefit, but I will leave it to her to close.
Removing from proposal bins.
rsc
changed the title
proposal: x/pkgsite: support showing identifiers that are constrained by build tags
x/pkgsite: support showing identifiers that are constrained by build tags
May 12, 2021
What did you do?
// +build preview
: codyoss/foo@cd688cdWhat did you expect to see?
I expect some way to view docs for identifiers that are guarded by build constraints and the file to be listed is source files. Maybe something similar to how the official language docs can call out what version of Go an identifier was added in or a dropdown to select constraints? This could also be useful if a Windows version of a function has slightly different docs than the linux version.
What did you see instead?
I could not view the docs for my constrained function. Nor could I see
constrained.go
in the list of Source Files.Additional context
This is sort of an off-shoot of some of the chatter in #34409. A suggestion was made to hide identifiers with build constraints. To me this would only be viable if developers could see those identifiers in documentation easily.
The text was updated successfully, but these errors were encountered: