forked from gobyexample-cn/gobyexample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.txt
75 lines (75 loc) · 1.83 KB
/
examples.txt
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
Hello World
Values->值
Variables->变量
Constants->常量
For->For 循环
If/Else->If/Else 分支
Switch->Switch 分支结构
Arrays->数组
Slices->切片
Maps->Map
Range->Range 遍历
Functions->函数
Multiple Return Values->多返回值
Variadic Functions->变参函数
Closures->闭包
Recursion->递归
Pointers->指针
Structs->结构体
Methods->方法
Interfaces->接口
Errors->错误处理
Goroutines->协程
Channels->通道
Channel Buffering->通道缓冲
Channel Synchronization->通道同步
Channel Directions->通道方向
Select->通道选择器
Timeouts->超时处理
Non-Blocking Channel Operations->非阻塞通道操作
Closing Channels->通道的关闭
Range over Channels->通道遍历
Timers->Timer
Tickers->Ticker
Worker Pools->工作池
WaitGroups->WaitGroup
Rate Limiting->速率限制
Atomic Counters->原子计数器
Mutexes->互斥锁
Stateful Goroutines->状态协程
Sorting->排序
Sorting by Functions->使用函数自定义排序
Panic
Defer
Collection Functions->组合函数
String Functions->字符串函数
String Formatting->字符串格式化
Regular Expressions->正则表达式
JSON
XML
Time->时间
Epoch->时间戳
Time Formatting / Parsing->时间的格式化和解析
Random Numbers->随机数
Number Parsing->数字解析
URL Parsing->URL 解析
SHA1 Hashes->SHA1 哈希
Base64 Encoding->Base64 编码
Reading Files->读文件
Writing Files->写文件
Line Filters->行过滤器
File Paths->文件路径
Directories->目录
Temporary Files and Directories->临时文件和目录
Testing->单元测试
Command-Line Arguments->命令行参数
Command-Line Flags->命令行标志
Command-Line Subcommands->命令行子命令
Environment Variables->环境变量
HTTP Clients->HTTP 客户端
HTTP Servers->HTTP 服务端
Context
Spawning Processes->生成进程
Exec'ing Processes->执行进程
Signals->信号
Exit->退出