• Rob Pike's avatar
    cmd/doc: search the tree in breadth-first order · 2aa58744
    Rob Pike authored
    This is a simple change to the command that should resolve problems like finding
    vendored packages before their non-vendored siblings. By searching in breadth-first
    order, we find the matching package lowest in the hierarchy, which is more likely
    to be correct than the deeper one, such as a vendored package, that will be found
    in a depth-first scan.
    
    This may be sufficient to resolve the issue, and has the merit that it is very easy
    to explain. I will leave the issue open for now in case my intuition is wrong.
    
    Update #12423
    
    Change-Id: Icf69e8beb1845277203fcb7d19ffb7cca9fa41f5
    Reviewed-on: https://go-review.googlesource.com/17691Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    2aa58744
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...