This repository was archived by the owner on Jul 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -152,13 +152,13 @@ only when building the package for 32-bit x86.
152
152
153
153
154
154
## Variables
155
+ ``` go
156
+ var ToolDir = filepath.Join (runtime.GOROOT (), " pkg/tool/" +runtime.GOOS +" _" +runtime.GOARCH )
157
+ ```
155
158
156
- <pre >var ToolDir = filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)</pre >
157
159
ToolDir is the directory containing build tools.
158
160
159
161
160
-
161
-
162
162
## func ArchChar
163
163
<pre >func ArchChar(goarch string) (string, error)</pre >
164
164
ArchChar returns the architecture character for the given goarch.
Original file line number Diff line number Diff line change 37
37
38
38
39
39
## Variables
40
+ ``` go
41
+ var Env = Dev
42
+ ```
40
43
41
- <pre >var Env = Dev</pre >
42
44
Env is the environment that Martini is executing in. The MARTINI_ENV is read on initialization to set this variable.
43
45
44
46
45
47
46
-
47
-
48
48
## type BeforeFunc
49
49
<pre >type BeforeFunc func(ResponseWriter)</pre >
50
50
BeforeFunc is a function that is called before the ResponseWriter has been written to.
Original file line number Diff line number Diff line change @@ -12,14 +12,11 @@ var pkgTemplate = `{{with .PDoc}}{{if $.IsMain}}
12
12
{{example_html $ ""}}
13
13
14
14
{{with .Consts}}## Constants
15
- {{range .}}{{node $ .Decl | pre }}
15
+ {{range .}}{{node $ .Decl | pre}}
16
16
{{comment_md .Doc}}{{end}}{{end}}
17
17
{{with .Vars}}## Variables
18
- {{range .}}
19
- <pre>{{node $ .Decl}}</pre>
20
- {{comment_md .Doc}}
21
- {{end}}
22
- {{end}}
18
+ {{range .}}{{node $ .Decl | pre}}
19
+ {{comment_md .Doc}}{{end}}{{end}}
23
20
{{range .Funcs}}{{$name_html := html .Name}}## func {{$name_html}}
24
21
<pre>{{node $ .Decl}}</pre>
25
22
{{comment_md .Doc}}
You can’t perform that action at this time.
0 commit comments