...
1{{synopsis .Doc}}
2PACKAGE {{.Name}}
3
4IMPORTPATH
5 {{.ImportPath}}
6
7{{with .Imports}}IMPORTS
8{{range .}} {{.}}
9{{end}}
10{{end}}{{/*
11
12*/}}FILENAMES
13{{range .Filenames}} {{.}}
14{{end}}{{/*
15
16*/}}{{with .Consts}}
17CONSTANTS
18{{range .}} {{synopsis .Doc}}
19 {{node .Decl $.FSet}}
20
21{{end}}{{end}}{{/*
22
23*/}}{{with .Vars}}
24VARIABLES
25{{range .}} {{synopsis .Doc}}
26 {{node .Decl $.FSet}}
27
28{{end}}{{end}}{{/*
29
30*/}}{{with .Funcs}}
31FUNCTIONS
32{{range .}} {{synopsis .Doc}}
33 {{node .Decl $.FSet}}
34
35{{end}}{{end}}{{/*
36
37*/}}{{with .Types}}
38TYPES
39{{range .}} {{synopsis .Doc}}
40 {{node .Decl $.FSet}}
41
42{{range .Consts}} {{synopsis .Doc}}
43 {{node .Decl $.FSet}}
44
45{{end}}{{/*
46
47*/}}{{range .Vars}} {{synopsis .Doc}}
48 {{node .Decl $.FSet}}
49
50{{end}}{{/*
51
52*/}}{{range .Funcs}} {{synopsis .Doc}}
53 {{node .Decl $.FSet}}
54
55{{end}}{{/*
56
57*/}}{{range .Methods}} {{synopsis .Doc}}
58 {{node .Decl $.FSet}}
59
60{{end}}{{end}}{{end}}{{/*
61
62*/}}{{with .Bugs}}
63BUGS .Bugs is now deprecated, please use .Notes instead
64{{range .}}{{indent "\t" .}}
65{{end}}{{end}}{{with .Notes}}{{range $marker, $content := .}}
66{{$marker}}S
67{{range $content}}{{$marker}}({{.UID}}){{indent "\t" .Body}}
68{{end}}{{end}}{{end}}
View as plain text