]> Cypherpunks repositories - gostls13.git/commitdiff
exclude _test from godoc as well as _obj.
authorRuss Cox <rsc@golang.org>
Thu, 20 Aug 2009 16:49:05 +0000 (09:49 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 20 Aug 2009 16:49:05 +0000 (09:49 -0700)
R=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=33586
CL=33590

src/cmd/godoc/godoc.go

index 34b03aaae92fc0af41ef114d03a1a1e3ae823ea4..5c01f55fbacd6a1768f96ad928d09309450d702f 100644 (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] != '_';
 }