mirror of
https://github.com/golang/go
synced 2024-11-20 01:14:40 -07:00
9859af879b
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
84 lines
1.4 KiB
Plaintext
84 lines
1.4 KiB
Plaintext
{{with .PAst}}{{node . $.FSet}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
|
|
|
|
package {{.PackageName}}
|
|
import "{{.ImportPath}}"
|
|
|
|
{{else}}COMMAND DOCUMENTATION
|
|
|
|
{{end}}{{.Doc}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Consts}}
|
|
CONSTANTS
|
|
|
|
{{range .}}{{node .Decl $.FSet}}
|
|
{{.Doc}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Vars}}
|
|
VARIABLES
|
|
|
|
{{range .}}{{node .Decl $.FSet}}
|
|
{{.Doc}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Funcs}}
|
|
FUNCTIONS
|
|
|
|
{{range .}}{{node .Decl $.FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Types}}
|
|
TYPES
|
|
|
|
{{range .}}{{node .Decl $.FSet}}
|
|
{{.Doc}}
|
|
{{range .Consts}}{{node .Decl $.FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Vars}}{{node .Decl $.FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Factories}}{{node .Decl $.FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Methods}}{{node .Decl $.FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{end}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Bugs}}
|
|
BUGS
|
|
|
|
{{range .}}{{.}}
|
|
{{end}}{{end}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .PList}}
|
|
OTHER PACKAGES
|
|
|
|
{{range .}}
|
|
{{.}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Dirs}}
|
|
SUBDIRECTORIES
|
|
{{if $.DirFlat}}{{range .List}}
|
|
{{.Path}}{{end}}
|
|
{{else}}{{range .List}}
|
|
{{repeat `. ` .Depth}}{{.Name}}{{end}}
|
|
{{end}}{{end}}
|