Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions godocdown/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ func loadDocument(target string) (*_document, error) {
isCommand = true
pkg = tmpPkg
default:
// test import, like pkg_test
if strings.HasSuffix(tmpPkg.Name, "_test") {
continue
}
// Just a regular package
name = tmpPkg.Name
pkg = tmpPkg
Expand Down