This repository was archived by the owner on Jan 16, 2021. It is now read-only.
This repository was archived by the owner on Jan 16, 2021. It is now read-only.
Standard library packages not being returned for simple queries #508
Closed
Description
Picking up on #505 (comment) I'm still seeing issues where a search query with the term that is the path.Base
of a standard library package import path fails to return the standard library package in the list of results.
For example the query for math
:
Doesn't appear on the entire results page, let alone near the top
This was also the case for strings
and os
(as reported in #505 (comment)) but they now appear to be fixed (thanks @shantuo).
Doing a quick analysis of the Go 1.9 standard library, the following packages appear to suffer from this problem:
- bytes (https://godoc.org/?q=bytes)
- compress/flate (https://godoc.org/?q=flate)
- crypto/rand (https://godoc.org/?q=rand)
- crypto/sha1 (https://godoc.org/?q=sha1)
- crypto/sha256 (https://godoc.org/?q=sha256)
- crypto/tls (https://godoc.org/?q=tls)
- encoding/gob (https://godoc.org/?q=gob)
- go/importer (https://godoc.org/?q=importer)
- math/bits (https://godoc.org/?q=bits)
- net (https://godoc.org/?q=net)
- net/http (https://godoc.org/?q=http)
- reflect (https://godoc.org/?q=reflect)
- runtime/cgo (https://godoc.org/?q=cgo)
- runtime/race (https://godoc.org/?q=race)
List compiled using script:
for i in $(go list std | grep -v internal | grep -v ^vendor\/)
do
b=$(basename $i)
r=$(curl -s --fail https://godoc.org/?q=$b | pup "table[class=\"table table-condensed\"] tbody tr td a[href=\"/$i\"] text{}")
d=0
if [ "$r" == "" ]
then
echo "* $i (https://godoc.org/?q=$b)"
fi
done
I'm fairly certain that something has changed here?
Thanks
Metadata
Metadata
Assignees
Labels
No labels