Go开发资源
Go语言开发资源汇总,涵盖常用库、框架、工具和学习资料。
# 官方资源
- Go官方网站 (opens new window) - Go语言官网
- Go官方文档 (opens new window) - Go官方文档中心
- Go标准库 (opens new window) - Go标准库文档
- Go官方博客 (opens new window) - Go官方博客
- Go子项目库 (opens new window) - Go子项目源码
# 常用库
# 日志框架
- Zerolog (opens new window) - 高性能零分配日志库
- Zap (opens new window) - Uber出品的高性能结构化日志库
- Logrus (opens new window) - 可插拔的结构化日志库
- Klog (opens new window) - Kubernetes使用的日志库
# JSON处理
- GJSON (opens new window) - 快速获取JSON值的库
- JSONPath (opens new window) - JSONPath表达式查询库
- SJSON (opens new window) - 快速设置JSON值的库
- EasyJSON (opens new window) - 高性能JSON序列化库
# 单元测试
- Testify (opens new window) - Go最流行的测试工具包
- GoConvey (opens new window) - BDD风格的Go测试框架
- GoMock (opens new window) - Go官方的mock框架
# 配置管理
- Viper (opens new window) - Go配置管理解决方案
- Envconfig (opens new window) - 从环境变量读取配置
- Koanf (opens new window) - 轻量级配置库
# 命令行工具
- Cobra (opens new window) - 强大的命令行程序库
- Cli (opens new window) - 简单易用的命令行框架
- Kingpin (opens new window) - 命令行参数解析器
# 定时任务
- Cron (opens new window) - 定时任务库
- Gocron (opens new window) - 简单的定时任务调度器
# 参数校验
- Validator (opens new window) - 结构体验证库
- Govalidator (opens new window) - 字符串验证和验证器集合
# 工具库
- Go-cmp (opens new window) - 比较工具,用于测试
- Lancet (opens new window) - Go常用工具函数库
- Copy (opens new window) - 结构体复制库
# HTTP客户端
- Resty (opens new window) - 简单的HTTP和REST客户端
- Heimdall (opens new window) - HTTP客户端with重试机制
# 并发编程
- Ants (opens new window) - 高性能的goroutine池
- Tunny (opens new window) - 轻便的goroutine池
- Machinery (opens new window) - 异步任务队列
- Go-resiliency (opens new window) - 弹性模式库
# ORM与数据库
- GORM (opens new window) - 友好的ORM库
- Xorm (opens new window) - 简单强大的ORM库
- Sqlc (opens new window) - 根据SQL生成Go代码
- Sqlx (opens new window) - 提供便利方法的数据库接口
# 其他精选库
- Awesome Go (opens new window) - Go库精选清单
- RxGo (opens new window) - Go的响应式扩展
- WebSocket (opens new window) - WebSocket库
- Mux (opens new window) - 强大的HTTP路由器
- Casbin (opens new window) - 访问控制库
- Go-redis (opens new window) - Redis客户端
# Web框架
# 主流框架
- Gin (opens new window) - 高性能Web框架
- Echo (opens new window) - 高性能、极简Web框架
- Fiber (opens new window) - 基于Fasthttp的Web框架
- Beego (opens new window) - 全栈Web框架
- go-zero (opens new window) - 微服务框架
# 轻量级框架
- Fasthttp (opens new window) - 快速HTTP实现
- Httprouter (opens new window) - 高性能HTTP路由器
- Chi (opens new window) - 轻量级、惯用的HTTP路由器
# 微服务框架
- CloudWeGo (opens new window) - 字节跳动微服务中间件
- Go-kit (opens new window) - 微服务工具包
- Go-micro (opens new window) - 微服务框架
# K8s相关工具
- Kube-capacity (opens new window) - K8s资源计算工具
- Kubectl (opens new window) - K8s命令行工具
- Helm (opens new window) - K8s包管理器
# 学习资源
# 官方文档
- Go by Example (opens new window) - 按示例学习Go
- Effective Go (opens new window) - 有效编写Go代码
- Go语言规范 (opens new window) - Go语言规范
- Go Tour (opens new window) - Go语言教程
# 优秀博客
- Go语言设计与实现 (opens new window) - 深入理解Go内部实现
- Go语言高性能编程 (opens new window) - 性能优化指南
- Go语言高级编程 (opens new window) - 高级编程技巧
- 飞雪无情 (opens new window) - Go技术博客
- mohuishou (opens new window) - Go相关技术文章
- 胡伟煌 (opens new window) - K8s和Go技术博客
- 地鼠文档 (opens new window) - Go中文文档
# 工程化与规范
- Uber Go Style Guide (opens new window) - Uber Go代码规范
- Go工程化项目布局 (opens new window) - 标准项目布局
- Go编码规范 (opens new window) - Go编码规范指南
- Effective Go中文版 (opens new window) - 代码审查注释
- Go编码规范指南 (opens new window) - 华为云Go编码规范
- Go贡献指南 (opens new window) - Go官网贡献指南
- Standard Go Project Layout (opens new window) - Go工程化项目布局
# 设计模式
- Go设计模式 (opens new window) - Go语言设计模式
- Go Patterns (opens new window) - Go清洁架构示例
# 资源汇总
- go-awesome (opens new window) - Go学习资料汇总
- awesome-go (opens new window) - Go库精选清单
- Go学习路线 (opens new window) - Go服务器编程学习
# 每日一库
- Go每日一库 (opens new window) - Go每日一库系列文章
编辑 (opens new window)
上次更新: 2026/04/03, 01:12:00