From 364301efc6d376836de4daab21d55af7bc15853d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 20 Aug 2009 09:49:05 -0700 Subject: [PATCH] exclude _test from godoc as well as _obj. R=gri DELTA=1 (0 added, 0 deleted, 1 changed) OCL=33586 CL=33590 --- src/cmd/godoc/godoc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go index 34b03aaae92..5c01f55fbac 100644 --- a/src/cmd/godoc/godoc.go +++ b/src/cmd/godoc/godoc.go @@ -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] != '_'; }