Skip to content
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
@myitcv

Description

@myitcv

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:

https://godoc.org/?q=math

screen shot 2017-08-29 at 18 41 48

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions