The Go Programming Language Specification
介紹
1.
简介-Introduction
2.
符号-Notation
3.
源码表示-Source code representation
3.1.
字符-Characters
3.2.
字母和数字-Letters and digits
4.
词法元素-Lexical elements
4.1.
令牌-Tokens
4.2.
分号-Semicolons
4.3.
标识符-Identifiers
4.4.
关键字-Keywords
4.5.
操作符和定界符-Operators and Delimiters
4.6.
整型字面量-Integer literals
4.7.
浮点型字面量-Floating-point literals
4.8.
复数字面量-Imaginary literals
4.9.
Rune literals
4.10.
字符型字面量-String literals
5.
常量-Constants
6.
变量-Variables
6.1.
Type-Types
6.2.
方法组合-Method sets
6.3.
布尔型-Boolean types
6.4.
数字型-Numeric types
6.5.
字符型-String types
6.6.
数组-Array types
6.7.
切片-Slice types
6.8.
结构体-Struct types
6.9.
指针-Pointer types
6.10.
函数-Function types
6.11.
接口-Interface types
6.12.
字典-Map types
6.13.
Channel-Channel types
6.14.
Type属性、值-Properties of types and values
6.15.
Type的表示-Type identity
6.16.
可换让性-Assignability
7.
块-Blocks
8.
声明范围-Declarations and scope
8.1.
标签范围-Label scopes
8.2.
空白符-Blank identifier
8.3.
预声明标识符-Predeclared identifiers
8.4.
输出标识符-Exported identifiers
8.5.
Uniqueness of identifiers
8.6.
常量声明-Constant declarations
8.7.
Iota-Iota
8.8.
Type声明-Type declarations
8.9.
变量声明-Variable declarations
8.10.
变量声明简写-Short variable declarations
8.11.
函数声明-Function declarations
8.12.
方法声明-Method declarations
9.
表达式-Expressions
9.1.
操作数-Operands
9.2.
Qualified identifiers
9.3.
复数字面量-Composite literals
9.4.
函数字面量Function literals
9.5.
基本表达式-Primary expressions
9.6.
Selectors-Selectors
9.7.
方法表示方式-Method expressions
9.8.
方法的值-Method values
9.9.
下标表示方式-Index expressions
9.10.
切片表示方式-Slice expressions
9.11.
type断言-Type assertions
9.12.
调用-Calls
9.13.
传递不定参数-Passing arguments to ... parameters
9.14.
一元运算符-Operators
9.15.
算术运算符-Arithmetic operators
9.16.
比较运算符-Comparison operators
9.17.
逻辑运算符-Logical operators
9.18.
地址运算符-Address operators
9.19.
Receive运算符-Receive operator
9.20.
转换-Conversions
9.21.
常量运算符-Constant expressions
9.22.
Order of evaluation
10.
语句-Statements
10.1.
结束语句-Terminating statements
10.2.
空语句-Empty statements
10.3.
Labeled statements
10.4.
表达式声明-Expression statements
10.5.
Send statements
10.6.
自增自减语句-IncDec statements
10.7.
Assignments
10.8.
if条件语句声明-If statements
10.9.
switch语句声明-Switch statements
10.10.
for语句声明-For statements
10.11.
go语句声明-Go statements
10.12.
select语句声明-Select statements
10.13.
return语句声明-Return statements
10.14.
break语句声明-Break statements
10.15.
contine语句声明-Continue statements
10.16.
goto语句声明-Goto statements
10.17.
falthrough语句声明-Fallthrough statements
10.18.
defer语句声明-Defer statements
11.
Built-in functions
11.1.
Close
11.2.
长度、空间-Length and capacity
11.3.
分配-Allocation
11.4.
创建slice、map、channel-Making slices, maps and channels
11.5.
切片追加、拷贝-Appending to and copying slices
11.6.
删除map元素-Deletion of map elements
11.7.
操纵复数-Manipulating complex numbers
11.8.
处理panic-Handling panics
11.9.
Bootstrapping
12.
包-Packages
12.1.
源码结构-Source file organization
12.2.
Package-clause
12.3.
Import声明-Import declarations
12.4.
package示例-An example package
13.
程序的初始化和执行-Program initialization and execution
13.1.
"零"值-The zero value
13.2.
package初始化-Package initialization
13.3.
执行程序-Program execution
14.
Error类型-Errors
15.
Run-time panics
16.
系统注意事项-System considerations
16.1.
不安全的包-Package unsafe
16.2.
Size and alignment guarantees
Powered by
GitBook
The Go Programming Language Specification
待续...