Skip to content
Main Navigation
Why Go
Case Studies
Use Cases
Security
Learn
Docs
Effective Go
Go User Manual
Standard library
Release Notes
Packages
Community
Recorded Talks
Meetups
Conferences
Go 博客
Go 项目
Appearance
Menu
Return to top
On this page
目录
Table of Contents
介绍
示例
格式化
注释
命名
包名
获取器
接口名
驼峰命名法
分号
控制语句
If
Redeclaration and reassignment
For
Switch
Type switch
函数
多返回值
可命名结果形参
Defer
数据
new 分配
构造函数与复合字面量
make 分配
数组
切片
二维切片
映射
打印
追加
初始化
常数
变量
init函数
方法
指针 vs. 值
接口与其它类型
接口
转换
接口转换和类型断言
通用性
接口和方法
空白标识符
多重赋值中的空白标识符
未使用的导入和变量
为副作用而导入
接口检查
内嵌
并发
通过通信共享内存
Goroutines
Channels
信道中的信道
并行化
漏桶模型
错误
Panic
Recover
一个 Web 服务器