Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Commit cbc359b

Browse files
committed
wip
1 parent a64035a commit cbc359b

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

examples/build/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ only when building the package for 32-bit x86.
152152

153153

154154
## Variables
155+
``` go
156+
var ToolDir = filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)
157+
```
155158

156-
<pre>var ToolDir = filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)</pre>
157159
ToolDir is the directory containing build tools.
158160

159161

160-
161-
162162
## func ArchChar
163163
<pre>func ArchChar(goarch string) (string, error)</pre>
164164
ArchChar returns the architecture character for the given goarch.

examples/martini/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ Envs
3737

3838

3939
## Variables
40+
``` go
41+
var Env = Dev
42+
```
4043

41-
<pre>var Env = Dev</pre>
4244
Env is the environment that Martini is executing in. The MARTINI_ENV is read on initialization to set this variable.
4345

4446

4547

46-
47-
4848
## type BeforeFunc
4949
<pre>type BeforeFunc func(ResponseWriter)</pre>
5050
BeforeFunc is a function that is called before the ResponseWriter has been written to.

template.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ var pkgTemplate = `{{with .PDoc}}{{if $.IsMain}}
1212
{{example_html $ ""}}
1313
1414
{{with .Consts}}## Constants
15-
{{range .}}{{node $ .Decl | pre }}
15+
{{range .}}{{node $ .Decl | pre}}
1616
{{comment_md .Doc}}{{end}}{{end}}
1717
{{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}}
2320
{{range .Funcs}}{{$name_html := html .Name}}## func {{$name_html}}
2421
<pre>{{node $ .Decl}}</pre>
2522
{{comment_md .Doc}}

0 commit comments

Comments
 (0)