Skip to content
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: add source code links for constants #40939

Open
julieqiu opened this issue Aug 20, 2020 · 0 comments
Open

x/pkgsite: add source code links for constants #40939

julieqiu opened this issue Aug 20, 2020 · 0 comments

Comments

@julieqiu
Copy link
Contributor

@julieqiu julieqiu commented Aug 20, 2020

At the moment, if you want to know that the constant internal/race.Enabled depends on build tags, you'll need to go to the file that defines the constant to see what its exact build tags are, because the constant does not link to the source code.

image

This requires knowing what file the constant is defined in, and navigating to figure out where the code is. We should consider providing source code links for constants.

@gopherbot gopherbot added this to the Unreleased milestone Aug 20, 2020
@julieqiu julieqiu modified the milestones: Unreleased, pkgsite/dochtml Aug 20, 2020
@gopherbot gopherbot added the go.dev label Sep 18, 2020
@julieqiu julieqiu removed the go.dev label Sep 19, 2020
@gopherbot gopherbot added the go.dev label Sep 19, 2020
@julieqiu julieqiu removed the go.dev label Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.