x/pkgsite: rethink module page #38087
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
UX
Issues that involve UXD/UXR input
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/mod/github.com/jinzhu/gorm
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.149 Safari/537.36
Screenshot
What did you do?
Visited the page.
What did you expect to see?
Useful information related to the module, somehow different than the package page.
(Or, nothing at all.)
What did you see instead?
Suggestions
go.mod
file above the Readme. Unsure if it would be the top item or underneath the package links.go.mod
file at the top would be a good indicator, but something in addition to that wouldn't go amiss.On displaying the
go.mod
file, it has a lot of useful data, such as what Go version is expected and what all the dependencies are, including their exact versions, and any replacements used. Factually, it's the only data that is unique to a module as a unit. My suggestion is displaying it exactly as-is, in a code font, but make all of the module references into hyperlinks that take you to that module on pkg.go.dev at the referenced version (tag/commit/etc.). This would include anyreplace =>
directives.Thanks!
The text was updated successfully, but these errors were encountered: