-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.UXIssues that involve UXD/UXR inputIssues that involve UXD/UXR inputpkgsite
Milestone
Description
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/mattn/go-sqlite3
What is your user agent?
Mozilla/5.0 (X11; CrOS x86_64 13505.73.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.109 Safari/537.36
Screenshot
What did you do?
- From https://pkg.go.dev, search for
go-sqlite3. - Click the first search result.
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:
- The module path is
github.com/mattn/go-sqlite3, and is correctly indicated by the breadcrumb nav at the top of the page. - The package path is
github.com/mattn/go-sqlite3. - The package name is
sqlite3. - The heading at the top of the module's
README.mdisgo-sqlite3.
Given those properties, I expected to see all of the following on the page, somewhere above the fold:
- Because
sqlite3is the package name but not the module path, I expected to see the stringsqlite3next to the word “package” but not next to the word “module”. - Because both the
READMEand the package docs are forms of documentation, I expected to see the word “package” in the left-nav link for the package documentation. - Because the definition of a “module” is “a collection of packages …”, I expected to see the word “packages” in the left-nav link to the table listing the packages within the module.
What did you see instead?
- The
modulebadge 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 theREADMEitself begins with (a fragment of) the actual module name. - Because of the large number of README sub-headings, the “Documentation” link is pushed almost below the fold.
- The nav link for the package documentation does not mention the word “package” at all, and does not distinguish between package documentation and other kinds of documentation (such as documentation for the module overall).
- The nav link for the list of packages within the module uses the word “directories” instead of “packages”.
- This is especially confusing for modules like
golang.org/x/tools, where thegoplssubdirectory 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.


- This is especially confusing for modules like
nickatsegment
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.UXIssues that involve UXD/UXR inputIssues that involve UXD/UXR inputpkgsite

