]> Cypherpunks repositories - gostls13.git/commit
godoc: provide mode for flat (non-indented) directory listings
authorRobert Griesemer <gri@golang.org>
Thu, 17 Nov 2011 22:47:49 +0000 (14:47 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 17 Nov 2011 22:47:49 +0000 (14:47 -0800)
commit9859af879bb303acfb37300e314d3057e98a5eaf
tree629afd9bb4bbb6d33f58a95117f4706ae771d906
parentea2c0cd88f830a1f8af9ee5f9a9cfb643f3cbd30
godoc: provide mode for flat (non-indented) directory listings

This feature should make it easier to look at very large
directory trees.

- a new mode (URL: /pkg/?m=flat) shows directory listings w/o
  indentation and entries with full path (html and text mode)
- in text mode, hierarchical (non-flat) directory listings are
  now presented with indentation (/pkg/?m=text)
- in html mode, hierarchical (non-flat) directory listings are
  presented with slightly less indentation
- there is an internal hook for programmatic control of the
  display mode (for specialized versions of godoc).

R=bradfitz
CC=golang-dev, rsc
https://golang.org/cl/5410043
lib/godoc/package.html
lib/godoc/package.txt
src/cmd/godoc/doc.go
src/cmd/godoc/godoc.go