As requested on https://blog.golang.org/pkg.go.dev-2020: I have found godoc.org to be the best way to search for quality Go modules, significantly because it defaults to sorting by the number of imports (possibly informed by the number of stars).
Observe, for instance, that on godoc.org, Brad Fitz's smtpd server comes up early, whereas on pkg.go.dev the front page has several packages of much less importance, and smtpd shows up on page 17 after a lot of inner modules and minor forks and larger projects that just happen to have an "smtp" package. Prioritizing hits at the "top level" of the package is probably a good idea, too; github.com/blah/smtpd is much more likely to be what I'm looking for than github.com/blah/project/go/inner1/inner2/smtp.
I also routinely suggest this to newcomers as a way of locating modules for Go.
The text was updated successfully, but these errors were encountered:
Thanks for the feedback! We sort by package imports currently, and are working to improve our search quality. If you have other examples of bad searches, feel free to post them on this issue.
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Feedback is required from experts, contributors, and/or the community before a change can be made.
Feb 3, 2020
As suggested by @ALTree, I'm moving #37430 here as the two issues are quite related. The main difference is that -- rather than just changing the default sort order -- #37430 requests the feature to allow users to select search order, including ascending and descending.
Provide options for sorting search results by number of imports and stars on GitHub
This issue is a feature request for pkg.go.dev to provide options for sorting search results based on number of imports, number of stars (on GitHub), date of release, etc. Preferably, the user could also specify whether to have the search results presented in ascending or descending search order.
For an example of this functionality, see the GitHub search results: