1
0
mirror of https://github.com/golang/go synced 2024-11-22 07:34:40 -07:00

exclude _test from godoc as well as _obj.

R=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=33586
CL=33590
This commit is contained in:
Russ Cox 2009-08-20 09:49:05 -07:00
parent 8811896597
commit 364301efc6

View File

@ -120,7 +120,7 @@ func isGoFile(dir *os.Dir) bool {
func isPkgDir(dir *os.Dir) bool {
return dir.IsDirectory() && dir.Name != "_obj";
return dir.IsDirectory() && len(dir.Name) > 0 && dir.Name[0] != '_';
}