-
Notifications
You must be signed in to change notification settings - Fork 18k
x/pkgsite: missing source files listing #37863
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
Comments
Thanks for the feedback, @tooolbox! One way to access the list of files in the directory is by visiting: And clicking on the "Package Source Code" link: https://github.com/CloudyKit/jet/tree/v2.1.2. Let me know if that achieves what you are looking for. If not - would you mind expanding on your current use case for the /cc @fflewddur |
Also related: #37819 |
Hi @julieqiu and thank you! Yes, I did see that way to access the source files. It doesn't, not quite. The main difference is that on godoc.org, you see just the A typical use case for me is when I'm looking at how a package works, I will often click on a method signature or two and then click through into the source to see how the function works, then go Back to the docs. After doing this a few times, I may ask, Where am I? Where are these signatures in relation to one another? at which point I will look at the source file listing to see how the package is divided up into chunks, and often click through to scan through and get a grip of the whole file. Since all the files in the listing are Hope that makes sense. |
Yup, thanks for explaining! We're currently working on addressing various design feedback with our UX team, so I'll make sure this comes up in our discussions as well. I'll update this issue once we have decided on any changes. |
I noticed this lack too, and I think the individual |
Hi @tooolbox and @benhoyt, thanks for reporting this! To make sure we understand the issue correctly, it sounds like your goal is to be able to quickly explore relevant parts of a package's source code, so that you can better understand what a package is doing under the hood. Is that accurate? Please let me know if there are also other reasons you're using those links; we want to make sure our solution accounts for them all. |
@fflewddur Yes, that's right (for me). It's an exploratory and learning tool to help you get into the source code, for example how a certain standard library package is implemented, how the code authors split it up by file (which helps give a feel for how "big" the package is), etc. |
Yes @fflewddur what you said is pretty accurate, with the addition of "able to quickly see a noise-free listing of the source files of a package, to see the logical divisions and better understand the anatomy and architecture of the codebase".
Yeah, also the ratio of types & method signatures in the Index, to the amount of source files, gives you an idea of how dense the codebase is. |
Ah, that makes sense. Thank you for the extra details! |
Change https://golang.org/cl/240007 mentions this issue: |
Change https://golang.org/cl/246437 mentions this issue: |
A section for package files containing links to the source code files was added in CL 240007. These will now be displayed on pkg.go.dev. For golang/go#37863 Change-Id: I35a7e74f631aa1f8c0a9775b0d721e7646843291 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/246437 Reviewed-by: Jonathan Amsterdam <[email protected]>
Very much appreciated that this was added! |
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/CloudyKit/jet?tab=doc
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
Screenshot
(See below for screenshots)
What did you do?
Visited the page.
What did you expect to see?
What did you see instead?
I don't see a way anymore to directly access the source files in a package! This has been useful to me in the past. I'm not saying it needs to be in the same spot, but I think it should be kept.
As a comparison, godoc has the "Directories" section, and now pkg.go.dev has the "Subdirectories" tab but dropped the source file listing.
The text was updated successfully, but these errors were encountered: