mirror of
https://github.com/golang/go
synced 2024-09-24 17:10:13 -06:00
5233c50321
- simplified pipelines - simplified templates by using template variables - converted most old-style formatters into new-style funcs - fixed some escaping bugs (use of url escaping where it was missing) R=r, dsymonds CC=golang-dev https://golang.org/cl/4868044
91 lines
1.5 KiB
Plaintext
91 lines
1.5 KiB
Plaintext
{{$FSet := .FSet}}{{$Info := .}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .PAst}}{{text_node . $FSet}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .PDoc}}{{if $Info.IsPkg}}PACKAGE
|
|
|
|
package {{.PackageName}}
|
|
import "{{.ImportPath}}"
|
|
|
|
{{else}}COMMAND DOCUMENTATION
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Doc}}{{text_node . $FSet}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Consts}}
|
|
CONSTANTS
|
|
|
|
{{range .}}{{text_node .Decl $FSet}}
|
|
{{.Doc}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Vars}}
|
|
VARIABLES
|
|
|
|
{{range .}}{{text_node .Decl $FSet}}
|
|
{{.Doc}}{{end}}
|
|
{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Funcs}}
|
|
FUNCTIONS
|
|
|
|
{{range .}}{{text_node .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{end}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Types}}
|
|
TYPES
|
|
|
|
{{range .}}{{text_node .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{range .Consts}}{{text_node .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Vars}}{{text_node .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Factories}}{{text_node .Decl $FSet}}
|
|
{{.Doc}}
|
|
{{end}}{{range .Methods}}{{text_node .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}}
|