1
0
mirror of https://github.com/golang/go synced 2024-10-05 09:11:21 -06:00
go/src/cmd/doc
Rob Pike 2aa5874490 cmd/doc: search the tree in breadth-first order
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/17691
Reviewed-by: Russ Cox <rsc@golang.org>
2015-12-10 18:08:16 +00:00
..
testdata cmd/doc: fix strange indentation artifacts with unexported fields 2015-11-17 20:51:19 +00:00
dirs.go cmd/doc: search the tree in breadth-first order 2015-12-10 18:08:16 +00:00
doc_test.go cmd/doc: fix strange indentation artifacts with unexported fields 2015-11-17 20:51:19 +00:00
main.go cmd/doc: fix pretty printing of paths 2015-09-29 02:18:57 +00:00
pkg.go cmd/doc: fix strange indentation artifacts with unexported fields 2015-11-17 20:51:19 +00:00