forked from gobyexample-cn/gobyexample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
168 lines (98 loc) · 5.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>Go by Example 中文</title>
<link rel=stylesheet href="./site.css">
<link rel="canonical" href="http://gobyexample.everyx.in/" />
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53092201-2', 'auto');
ga('send', 'pageview');
</script>
<div id="intro">
<h2><a href="./">Go by Example 中文</a></h2>
<p>
<a href="http://golang.org">Go</a> 是一个被设计用来建立简单,快速和可信赖的软件的开源程序设计语言。
</p>
<p>
<em>Go by Example</em> 是一个实践性的通过带注释的例子程序去介绍 Go。查看<a href="hello-world/">第一个例子</a>或者浏览下面的完整列表吧。
</p>
<ul>
<li><a href="hello-world/">你好,世界</a></li>
<li><a href="values/">值</a></li>
<li><a href="variables/">变量</a></li>
<li><a href="constants/">常量</a></li>
<li><a href="for/">For循环</a></li>
<li><a href="if-else/">if/else 分支</a></li>
<li><a href="switch/">分支结构</a></li>
<li><a href="arrays/">数组</a></li>
<li><a href="slices/">切片</a></li>
<li><a href="maps/">关联数组</a></li>
<li><a href="range/">Range 遍历</a></li>
<li><a href="functions/">函数</a></li>
<li><a href="multiple-return-values/">多返回值</a></li>
<li><a href="variadic-functions/">变参函数</a></li>
<li><a href="closures/">闭包</a></li>
<li><a href="recursion/">递归</a></li>
<li><a href="pointers/">指针</a></li>
<li><a href="structs/">结构体</a></li>
<li><a href="methods/">方法</a></li>
<li><a href="interfaces/">接口</a></li>
<li><a href="errors/">错误处理</a></li>
<li><a href="goroutines/">协程</a></li>
<li><a href="channels/">通道</a></li>
<li><a href="channel-buffering/">通道缓冲</a></li>
<li><a href="channel-synchronization/">通道同步</a></li>
<li><a href="channel-directions/">通道方向</a></li>
<li><a href="select/">通道选择器</a></li>
<li><a href="timeouts/">超时处理</a></li>
<li><a href="non-blocking-channel-operations/">非阻塞通道操作</a></li>
<li><a href="closing-channels/">通道的关闭</a></li>
<li><a href="range-over-channels/">通道遍历</a></li>
<li><a href="timers/">定时器</a></li>
<li><a href="tickers/">打点器</a></li>
<li><a href="worker-pools/">工作池</a></li>
<li><a href="rate-limiting/">速率限制</a></li>
<li><a href="atomic-counters/">原子计数器</a></li>
<li><a href="mutexes/">互斥锁</a></li>
<li><a href="stateful-goroutines/">Go 状态协程</a></li>
<li><a href="sorting/">排序</a></li>
<li><a href="sorting-by-functions/">使用函数自定义排序</a></li>
<li><a href="panic/">Panic</a></li>
<li><a href="defer/">Defer</a></li>
<li><a href="collection-functions/">组合函数</a></li>
<li><a href="string-functions/">字符串函数</a></li>
<li><a href="string-formatting/">字符串格式化</a></li>
<li><a href="regular-expressions/">正则表达式</a></li>
<li><a href="json/">JSON</a></li>
<li><a href="time/">时间</a></li>
<li><a href="epoch/">时间戳</a></li>
<li><a href="time-formatting-parsing/">时间的格式化和解析</a></li>
<li><a href="random-numbers/">随机数</a></li>
<li><a href="number-parsing/">数字解析</a></li>
<li><a href="url-parsing/">URL解析</a></li>
<li><a href="sha1-hashes/">SHA1散列</a></li>
<li><a href="base64-encoding/">Base64编码</a></li>
<li><a href="reading-files/">读文件</a></li>
<li><a href="writing-files/">写文件</a></li>
<li><a href="line-filters/">行过滤器</a></li>
<li><a href="command-line-arguments/">命令行参数</a></li>
<li><a href="command-line-flags/">命令行标志</a></li>
<li><a href="environment-variables/">环境变量</a></li>
<li><a href="spawning-processes/">生成进程</a></li>
<li><a href="execing-processes/">执行进程</a></li>
<li><a href="signals/">信号</a></li>
<li><a href="exit/">退出</a></li>
</ul>
<p class="footer">
<a href="https://twitter.com/mmcgrana">@mmcgrana</a> 编写 | <a href="https://plus.google.com/u/0/113729799374513477039">everyx</a> 翻译 | <a href="https://github.com/everyx/gobyexample">项目地址</a> | <a href="https://github.com/mmcgrana/gobyexample#license">license</a>
</p>
</div>
</body>
</html>