1
1
<!--{
2
2
"Title": "Documentation",
3
- "Path": "/doc/"
3
+ "Path": "/doc/",
4
+ "Template": true
4
5
}-->
5
6
6
7
< p >
@@ -33,14 +34,20 @@ <h2 id="learning">Learning Go</h2>
33
34
34
35
< img class ="gopher " src ="/doc/gopher/doc.png "/>
35
36
36
- < h3 id ="go_tour "> < a href ="//tour.golang.org/ "> A Tour of Go</ a > </ h3 >
37
+ < h3 id ="go_tour ">
38
+ {{if $.GoogleCN}}
39
+ A Tour of Go
40
+ {{else}}
41
+ < a href ="//tour.golang.org/ "> A Tour of Go</ a >
42
+ {{end}}
43
+ </ h3 >
37
44
< p >
38
45
An interactive introduction to Go in three sections.
39
46
The first section covers basic syntax and data structures; the second discusses
40
47
methods and interfaces; and the third introduces Go's concurrency primitives.
41
48
Each section concludes with a few exercises so you can practice what you've
42
- learned. You can < a href ="//tour.golang.org/ "> take the tour online </ a > or
43
- install it locally with:
49
+ learned. You can {{if not $.GoogleCN}} < a href ="//tour.golang.org/ "> take the tour
50
+ online </ a > or{{end}} install it locally with:
44
51
</ p >
45
52
< p >
46
53
< pre >
@@ -51,10 +58,13 @@ <h3 id="go_tour"><a href="//tour.golang.org/">A Tour of Go</a></h3>
51
58
52
59
< h3 id ="code "> < a href ="code.html "> How to write Go code</ a > </ h3 >
53
60
< p >
54
- Also available as a
55
- < a href ="//www.youtube.com/watch?v=XCsL89YtqCs "> screencast</ a > , this doc
56
- explains how to use the < a href ="/cmd/go/ "> go command</ a > to fetch, build, and
57
- install packages, commands, and run tests.
61
+ {{if not $.GoogleCN}}
62
+ Also available as a < a href ="//www.youtube.com/watch?v=XCsL89YtqCs "> screencast</ a > , this
63
+ {{else}}
64
+ This
65
+ {{end}}
66
+ doc explains how to use the < a href ="/cmd/go/ "> go command</ a >
67
+ to fetch, build, and install packages, commands, and run tests.
58
68
</ p >
59
69
60
70
< h3 id ="editors "> < a href ="editors.html "> Editor plugins and IDEs</ a > </ h3 >
@@ -115,9 +125,11 @@ <h3 id="release"><a href="/doc/devel/release.html">Release History</a></h3>
115
125
116
126
< h2 id ="articles "> Articles</ h2 >
117
127
128
+ {{if not $.GoogleCN}}
118
129
< h3 id ="blog "> < a href ="//blog.golang.org/ "> The Go Blog</ a > </ h3 >
119
130
< p > The official blog of the Go project, featuring news and in-depth articles by
120
131
the Go team and guests.</ p >
132
+ {{end}}
121
133
122
134
< h4 > Codewalks</ h4 >
123
135
< p >
@@ -130,6 +142,7 @@ <h4>Codewalks</h4>
130
142
< li > < a href ="/doc/articles/wiki/ "> Writing Web Applications</ a > - building a simple web application.</ li >
131
143
</ ul >
132
144
145
+ {{if not $.GoogleCN}}
133
146
< h4 > Language</ h4 >
134
147
< ul >
135
148
< li > < a href ="/blog/json-rpc-tale-of-interfaces "> JSON-RPC: a tale of interfaces</ a > </ li >
@@ -150,17 +163,20 @@ <h4>Packages</h4>
150
163
< li > < a href ="/blog/go-image-package "> The Go image package</ a > - the fundamentals of the < a href ="/pkg/image/ "> image</ a > package.</ li >
151
164
< li > < a href ="/blog/go-imagedraw-package "> The Go image/draw package</ a > - the fundamentals of the < a href ="/pkg/image/draw/ "> image/draw</ a > package.</ li >
152
165
</ ul >
166
+ {{end}}
153
167
154
168
< h4 > Tools</ h4 >
155
169
< ul >
156
170
< li > < a href ="/doc/articles/go_command.html "> About the Go command</ a > - why we wrote it, what it is, what it's not, and how to use it.</ li >
157
- < li > < a href ="/blog/c-go-cgo "> C? Go? Cgo!</ a > - linking against C code with < a href ="/cmd/cgo/ "> cgo</ a > .</ li >
158
171
< li > < a href ="/doc/gdb "> Debugging Go Code with GDB</ a > </ li >
172
+ < li > < a href ="/doc/articles/race_detector.html "> Data Race Detector</ a > - a manual for the data race detector.</ li >
173
+ < li > < a href ="/doc/asm "> A Quick Guide to Go's Assembler</ a > - an introduction to the assembler used by Go.</ li >
174
+ {{if not $.GoogleCN}}
175
+ < li > < a href ="/blog/c-go-cgo "> C? Go? Cgo!</ a > - linking against C code with < a href ="/cmd/cgo/ "> cgo</ a > .</ li >
159
176
< li > < a href ="/blog/godoc-documenting-go-code "> Godoc: documenting Go code</ a > - writing good documentation for < a href ="/cmd/godoc/ "> godoc</ a > .</ li >
160
177
< li > < a href ="/blog/profiling-go-programs "> Profiling Go Programs</ a > </ li >
161
- < li > < a href ="/doc/articles/race_detector.html "> Data Race Detector</ a > - a manual for the data race detector.</ li >
162
178
< li > < a href ="/blog/race-detector "> Introducing the Go Race Detector</ a > - an introduction to the race detector.</ li >
163
- < li > < a href =" /doc/asm " > A Quick Guide to Go's Assembler </ a > - an introduction to the assembler used by Go. </ li >
179
+ {{end}}
164
180
</ ul >
165
181
166
182
< h4 id ="articles_more "> More</ h4 >
@@ -169,7 +185,7 @@ <h4 id="articles_more">More</h4>
169
185
< a href ="/wiki "> Wiki</ a > for more Go articles.
170
186
</ p >
171
187
172
-
188
+ {{if not $.GoogleCN}}
173
189
< h2 id ="talks "> Talks</ h2 >
174
190
175
191
< img class ="gopher " src ="/doc/gopher/talks.png "/>
@@ -200,7 +216,7 @@ <h4 id="talks_more">More</h4>
200
216
< p >
201
217
See the < a href ="/talks "> Go Talks site</ a > and < a href ="/wiki/GoTalks "> wiki page</ a > for more Go talks.
202
218
</ p >
203
-
219
+ {{end}}
204
220
205
221
< h2 id ="nonenglish "> Non-English Documentation</ h2 >
206
222
0 commit comments