| {{define "ROOT"}}{{with .pdoc}}PACKAGE{{if .Name}} |
| |
| package {{.Name}} |
| import "{{.ImportPath}}" |
| |
| {{.Doc|comment}} |
| {{if .Consts}} |
| CONSTANTS |
| |
| {{range .Consts}}{{.Decl.Text}} |
| {{.Doc|comment}}{{end}} |
| {{end}}{{if .Vars}} |
| VARIABLES |
| |
| {{range .Vars}}{{.Decl.Text}} |
| {{.Doc|comment}}{{end}} |
| {{end}}{{if .Funcs}} |
| FUNCTIONS |
| |
| {{range .Funcs}}{{.Decl.Text}} |
| {{.Doc|comment}} |
| {{end}}{{end}}{{if .Types}} |
| TYPES |
| |
| {{range .Types}}{{.Decl.Text}} |
| {{.Doc|comment}} |
| {{range .Consts}}{{.Decl.Text}} |
| {{.Doc|comment}} |
| {{end}}{{range .Vars}}{{.Decl.Text}} |
| {{.Doc|comment}} |
| {{end}}{{range .Funcs}}{{.Decl.Text}} |
| {{.Doc|comment}} |
| {{end}}{{range .Methods}}{{.Decl.Text}} |
| {{.Doc|comment}} |
| {{end}}{{end}} |
| {{end}} |
| {{template "Subdirs" $}} |
| {{end}}{{end}}{{end}} |