~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to lib/godoc/package.txt

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{{with .PAst}}{{node . $.FSet}}{{end}}{{/*
 
1
{{with .PAst}}{{node $ .}}{{end}}{{/*
2
2
 
3
3
---------------------------------------
4
4
 
5
 
*/}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
 
5
*/}}{{with .PDoc}}{{if $.IsMain}}COMMAND DOCUMENTATION
 
6
 
 
7
{{comment_text .Doc "    " "\t"}}
 
8
{{else}}PACKAGE DOCUMENTATION
6
9
 
7
10
package {{.Name}}
8
11
    import "{{.ImportPath}}"
9
12
 
10
 
{{else}}COMMAND DOCUMENTATION
11
 
 
12
 
{{end}}{{comment_text .Doc "    " "\t"}}{{/*
 
13
{{comment_text .Doc "    " "\t"}}
 
14
{{example_text $ "" "    "}}{{/*
13
15
 
14
16
---------------------------------------
15
17
 
16
18
*/}}{{with .Consts}}
17
19
CONSTANTS
18
20
 
19
 
{{range .}}{{node .Decl $.FSet}}
20
 
{{comment_text .Doc "    " "\t"}}{{end}}
21
 
{{end}}{{/*
 
21
{{range .}}{{node $ .Decl}}
 
22
{{comment_text .Doc "    " "\t"}}
 
23
{{end}}{{end}}{{/*
22
24
 
23
25
---------------------------------------
24
26
 
25
27
*/}}{{with .Vars}}
26
28
VARIABLES
27
29
 
28
 
{{range .}}{{node .Decl $.FSet}}
29
 
{{comment_text .Doc "    " "\t"}}{{end}}
30
 
{{end}}{{/*
 
30
{{range .}}{{node $ .Decl}}
 
31
{{comment_text .Doc "    " "\t"}}
 
32
{{end}}{{end}}{{/*
31
33
 
32
34
---------------------------------------
33
35
 
34
36
*/}}{{with .Funcs}}
35
37
FUNCTIONS
36
38
 
37
 
{{range .}}{{node .Decl $.FSet}}
 
39
{{range .}}{{node $ .Decl}}
38
40
{{comment_text .Doc "    " "\t"}}
39
 
{{end}}{{end}}{{/*
 
41
{{example_text $ .Name "    "}}{{end}}{{end}}{{/*
40
42
 
41
43
---------------------------------------
42
44
 
43
45
*/}}{{with .Types}}
44
46
TYPES
45
47
 
46
 
{{range .}}{{node .Decl $.FSet}}
47
 
{{comment_text .Doc "    " "\t"}}
48
 
{{range .Consts}}{{node .Decl $.FSet}}
49
 
{{comment_text .Doc "    " "\t"}}
50
 
{{end}}{{range .Vars}}{{node .Decl $.FSet}}
51
 
{{comment_text .Doc "    " "\t"}}
52
 
{{end}}{{range .Funcs}}{{node .Decl $.FSet}}
53
 
{{comment_text .Doc "    " "\t"}}
54
 
{{end}}{{range .Methods}}{{node .Decl $.FSet}}
55
 
{{comment_text .Doc "    " "\t"}}
56
 
{{end}}{{end}}{{end}}{{/*
57
 
 
58
 
---------------------------------------
59
 
 
60
 
*/}}{{with .Bugs}}
61
 
BUGS
62
 
 
63
 
{{range .}}{{comment_text . "    " "\t"}}
64
 
{{end}}{{end}}{{end}}{{/*
65
 
 
66
 
---------------------------------------
67
 
 
68
 
*/}}{{with .PList}}
69
 
OTHER PACKAGES
70
 
 
71
 
{{range .}}
72
 
{{.}}{{end}}
73
 
{{end}}{{/*
 
48
{{range .}}{{$tname := .Name}}{{node $ .Decl}}
 
49
{{comment_text .Doc "    " "\t"}}
 
50
{{range .Consts}}{{node $ .Decl}}
 
51
{{comment_text .Doc "    " "\t"}}
 
52
{{end}}{{range .Vars}}{{node $ .Decl}}
 
53
{{comment_text .Doc "    " "\t"}}
 
54
{{end}}{{example_text $ .Name "    "}}
 
55
{{range .Funcs}}{{node $ .Decl}}
 
56
{{comment_text .Doc "    " "\t"}}
 
57
{{example_text $ .Name "    "}}
 
58
{{end}}{{range .Methods}}{{node $ .Decl}}
 
59
{{comment_text .Doc "    " "\t"}}
 
60
{{$name := printf "%s_%s" $tname .Name}}{{example_text $ $name "    "}}{{end}}
 
61
{{end}}{{end}}{{end}}{{/*
 
62
 
 
63
---------------------------------------
 
64
 
 
65
*/}}{{with $.Notes}}
 
66
{{range $marker, $content := .}}
 
67
{{$marker}}S
 
68
 
 
69
{{range $content}}{{comment_text .Body "   " "\t"}}
 
70
{{end}}{{end}}{{end}}{{end}}{{/*
74
71
 
75
72
---------------------------------------
76
73