x/pkgsite: inconsistent terminology when referring to packages makes module landing page confusing #43327
Labels
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/github.com/mattn/go-sqlite3
What is your user agent?
Screenshot
What did you do?
go-sqlite3
.What did you expect to see?
I wanted to see documentation for the package at the root of the module, and specifically to find out the name that that package declares in its
package
directive.The path indicated by the URL has the following properties:
github.com/mattn/go-sqlite3
, and is correctly indicated by the breadcrumb nav at the top of the page.github.com/mattn/go-sqlite3
.sqlite3
.README.md
isgo-sqlite3
.Given those properties, I expected to see all of the following on the page, somewhere above the fold:
sqlite3
is the package name but not the module path, I expected to see the stringsqlite3
next to the word “package” but not next to the word “module”.README
and the package docs are forms of documentation, I expected to see the word “package” in the left-nav link for the package documentation.What did you see instead?
module
badge is displayed next to the package name instead of the module path. Since in this case the module path is not the package name, this associates the concept “module” with the wrong identifier, especially since theREADME
itself begins with (a fragment of) the actual module name.golang.org/x/tools
, where thegopls
subdirectory is a separate module. In that case, the subdirectory is pulled to the bottom of the list, instead of appearing inline with the other subdirectories. If the terminology used were “packages” and “modules” instead of simply “directories”, then that separation would make intuitive sense — however, the use of the term “directories” instead sets the expectation that the table should contain an entry for each relevant directory regardless of what kind of entity it corresponds to.The text was updated successfully, but these errors were encountered: