]> Cypherpunks repositories - gostls13.git/commit
godoc: don't show directories w/o packages in flat dir mode
authorRobert Griesemer <gri@golang.org>
Mon, 27 Feb 2012 19:18:00 +0000 (11:18 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 27 Feb 2012 19:18:00 +0000 (11:18 -0800)
commitab169c6e3f3acfdf9e9176968825d398820f40f1
tree919b49a600a22ca4f5d64eac527582d74904b669
parent0706d00cb8af873b82a0a0878e595a4369a76e52
godoc: don't show directories w/o packages in flat dir mode

The main change is simple: Both the Directory and DirEntry
struct have an extra field 'HasPkg' indicating whether the
directory contains any package files. The remaining changes
are more comments and adjustments to the template files.

Fixes #3121.

R=golang-dev, bradfitz, sameer
CC=golang-dev
https://golang.org/cl/5699072
lib/godoc/package.html
lib/godoc/package.txt
src/cmd/godoc/dirtrees.go