发展史核心特性应用场景GOROOTGOPATHGOBIN
Hello World程序结构packageimportmain函数
var:=constiotabool/int/float/string
if-elsefor循环switchgotobreak/continue
数组声明遍历slice创建append/copy底层原理
匿名函数闭包deferpanic/recover函数类型
指针概念声明/使用new函数指针参数与slice关系
面向接口编程error/StringerReader/Writer最佳实践
error接口自定义错误errors包fmt.ErrorfWrap/Unwrap
Go Modulesgo mod init/tidy导入本地/远程包可见性(大小写)
fmtstringsstrconvtimemath
osio/ioutilbufioencoding/jsonlog
Goroutine启动goroutinesync.WaitGroupGOMAXPROCS
Channel基础无缓冲/有缓冲单向Channelselect多路复用
sync.Mutexsync.RWMutex原子操作Worker Pool
打开/关闭Read/ReadFilebufioWrite/WriteFile文件复制
Marshal/UnmarshalJSON标签Encoder/Decoder流式读写
TCP Dial/ListenHTTP Get/PostHTTP HandleFunc服务器
RESTful APIGin路由/中间件参数绑定GORM CRUD
testing表格驱动测试Benchmarkpprof
reflectTypeOf/ValueOf修改值调用方法应用场景
需求分析/架构目录结构cmd/internal/pkgViper配置
pprof优化并发优化Swagger文档CI/CD Actions