mirror of
https://github.com/golang/go
synced 2024-11-12 02:40:21 -07:00
8d19d6bb39
R=gri, dsymonds CC=golang-dev https://golang.org/cl/4881042
91 lines
1.4 KiB
Plaintext
91 lines
1.4 KiB
Plaintext
{{$FSet := .FSet}}{{$Info := .}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .PAst}}{{text . $FSet}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .PDoc}}{{if $Info.IsPkg}}PACKAGE
|
|
|
|
package {{.PackageName}}
|
|
import "{{.ImportPath}}"
|
|
|
|
{{else}}COMMAND DOCUMENTATION
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Doc}}{{text . $FSet}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Consts}}
|
|
CONSTANTS
|
|
|
|
{{range .}}{{text .Decl $FSet}}
|
|
{{.Doc}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Vars}}
|
|
VARIABLES
|
|
|
|
{{range .}}{{text .Decl $FSet}}
|
|
{{.Doc}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Funcs}}
|
|
FUNCTIONS
|
|
|
|
{{range .}}{{text .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Types}}
|
|
TYPES
|
|
|
|
{{range .}}{{text .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{range .Consts}}{{text .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Vars}}{{text .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Factories}}{{text .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Methods}}{{text .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{end}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Bugs}}
|
|
BUGS
|
|
|
|
{{range .}}{{.}}
|
|
{{end}}{{end}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .PList}}
|
|
OTHER PACKAGES
|
|
|
|
{{range .}}
|
|
{{.}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Dirs}}
|
|
SUBDIRECTORIES
|
|
|
|
{{range .List}}
|
|
{{.Name}}{{end}}
|
|
{{end}}
|