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/tools/cmd/godoc: link from filename to source code #17125
Comments
Sounds fine. |
CL https://golang.org/cl/29279 mentions this issue. |
The CL above (https://golang.org/cl/29279) makes
clickable. E.g., if you click on the |
@siadat what ever feels the most convenient. Take https://godoc.org/net/http navigation just as a example. The way to implement is open to any suggestions or methods. src => https://golang.org/src/net/http/client.go |
Let me know the navigation scheme below makes sense to everybody for the following page
So on the left side we navigate the src files on the right side we have the general package link |
Thanks @gertcuykens. I updated the CL. BeforeAfterThe source file segments are clickable. In the second screenshot I am hovering on http. Regarding the look of it, I used |
Looks awesome! :D thanks, PS how can I test it ? |
Get the go tools
Fetch and install the CL
Run it!
For any CL, the fetch command could be found in the Download menu of the CL in Gerrit. |
@siadat nailed it! This is waaaaay better now to navigate trough source code and it even works wel on mobile too! Please put this in milestone Go1.8 instead of Go1.8Maybe |
Can for example
src
/net
/http
/client.go be made clickable so you can navigate more easily through the source code instead of changing the url in the urlbar manually?godoc.org has a navigation menu and also links to the golang.org source code but once you are in the src file you have no navigation.
I am asking this because when you learn Go you end up easely in src files using the golang.org search field to look up golang stuff, for example https://golang.org/search?q=request
EDIT: One of the suggestions I can think of for the example https://golang.org/src/net/http/client.go
the left side we navigate the src files on the right side we have the general package link
The text was updated successfully, but these errors were encountered: