Go系列 ========================= :锁定版本: 1.22.12 :生命周期: 2024-02-06 ~ 2025-02-04 :官网: https://golang.google.cn/ :github: https://github.com/golang/go :变更日志: https://golang.google.cn/doc/devel/release :awesome: https://github.com/avelino/awesome-go :download: https://golang.google.cn/doc/install :风向标项目: prometheus .. hint:: 使用场景: 搭建mock服务器,专门应对接口测试时调用到的第三方服务的情况 .. include:: kubernetes.rst 语言 --------------------------- ants ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ go协程池 :锁定版本: 2.10.0(2024-06-18) :github: https://github.com/panjf2000/ants 后端 ------------------------ viper ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.20.1(2025-03-15 ~ 2025-03-27) :文档: https://github.com/spf13/viper?tab=readme-ov-file#what-is-viper :github: https://github.com/spf13/viper 完整的配置解决方案库 go-zero ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.7.6(2024-07-27 ~ 2025-01-02) :文档: https://go-zero.dev/ :github: https://github.com/zeromicro/go-zero :风向标项目: https://github.com/Mikaelemmmm/go-zero-looklook/ :知识星球: https://wx.zsxq.com/group/28885818248881 gin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 从1.10.X开始, 要求go版本 >= 1.23 :锁定版本: 1.9.1(2023-02-21 ~ 2023-06-01) :文档: https://gin-gonic.com/en/docs/ :github: https://github.com/gin-gonic/gin/ :demo: https://github.com/gin-gonic/examples gRPC ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 从1.68.X开始, 要求go版本 >=1.22 :锁定版本: 1.67.3 :文档: https://grpc.io/docs/languages/go/quickstart/ :github: https://github.com/grpc/grpc-go consul ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.20.3(2024-10-15 ~ 2025-02-13) :文档: https://developer.hashicorp.com/consul/docs :github: https://github.com/hashicorp/consul ORM ---------------------------- gorm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.25.12(2023-04-11 ~ 2024-08-22) :文档: https://gorm.io/zh_CN/ :github: https://github.com/go-gorm/gorm gen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 0.3.27(2022-04-18 ~ 2025-04-15) :文档: https://gorm.io/zh_CN/gen/ :github: https://github.com/go-gorm/gen 测试 -------------------------- gotestsum ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.12.2(2024-05-30 ~ 2025-05-06) :文档: https://github.com/gotestyourself/gotestsum?tab=readme-ov-file#documentation :github: https://github.com/gotestyourself/gotestsum testify ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.9.0(2024-03-01) :文档: https://github.com/stretchr/testify/blob/master/suite/suite_test.go :github: https://github.com/stretchr/testify testcontainers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 0.33.0(2024-08-20) :文档: https://golang.testcontainers.org/ :github: https://github.com/testcontainers/testcontainers-go gomonkey ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 2.12.0(2024-07-05) :github: https://github.com/agiledragon/gomonkey chromedp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 0.11.0(2024-10-15) :文档: https://github.com/chromedp/examples :github: https://github.com/chromedp/chromedp 运维 --------------------------------- alloy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 日志收集工具 :锁定版本: 1.10.2(2025-07-17 ~ 2025-08-20) :文档: https://grafana.com/docs/alloy/latest/ * 配置文件语法: https://grafana.com/docs/alloy/latest/reference/config-blocks/ :github: https://github.com/grafana/alloy/ :example: https://github.com/grafana/alloy-scenarios loki ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 3.5.3(2025-04-17 ~ 2025-07-23) :文档: https://grafana.com/docs/loki/latest/ :github: https://github.com/grafana/loki harbor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 2.13.1(2025-04-10 ~ 2025-05-26) :文档: https://goharbor.io/docs/2.13.0/ :github: https://github.com/goharbor/harbor 企业级镜像仓库 distribution ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 3.0.0(2025-04-03) :文档: https://distribution.github.io/distribution/ :github: https://github.com/distribution/distribution 轻量级镜像仓库, 适合本地开发使用, 替代harbor 搭配 `docker-registry-ui `_ 使用 docker ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 25.0.10(2024-01-19 ~ 2025-05-16) :文档: https://docs.docker.com/ :github: https://github.com/moby/moby :变更日志: https://docs.docker.com/engine/release-notes/27/ :hub: https://hub.docker.com/ :awesome-compose: https://github.com/docker/awesome-compose wsl绕过docker desktop安装docker-ce ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 场景: * 公司禁止使用Docker Desktop, 存在违规商用的法律风险 * minikube建议使用docker engine搭建k8s环境 国内快速安装教程: https://developer.aliyun.com/mirror/docker-ce?spm=a2c6h.13651102.0.0.655e1b11qXMDpg prometheus ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 3.0.1(2024-11-14 ~ 2024-11-28) :文档: https://prometheus.io/docs/introduction/overview/ :github: https://github.com/prometheus/prometheus podman ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ docker软件的平替,接触的原因是甲方禁止使用Docker Desktop, 规避商业授权问题 .. note:: 换新公司后如果不限制docker使用的话,放弃podman的版本维护 :锁定版本: 5.0.3(2024-03-20 ~ 2024-05-11) :文档: https://podman.io/ :github: https://github.com/containers/podman node_exporter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.8.2(2024-04-24 ~ 2024-06-19) :文档: https://prometheus.io/docs/guides/node-exporter/ :github: https://github.com/prometheus/node_exporter magefile ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.15.0(2023-05-11) :文档: https://magefile.org/ :github: https://github.com/magefile/mage 办公 ------------------------------- excelize ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 2.8.1(2023-08-28 ~ 2024-02-26) :文档: https://xuri.me/excelize :github: https://github.com/qax-os/excelize 开发工具 -------------------------------- modd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 热加载工具,类似于django的reload功能 :锁定版本: 0.8.1(2019-01-21 ~ 2023-05-03) :文档: https://github.com/cortesi/modd?tab=readme-ov-file#quick-start :github: https://github.com/cortesi/modd 微服务 --------------------------------- jaeger ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 1.64.0(2024-12-07) :文档: https://www.jaegertracing.io/docs/2.1/ :github: https://github.com/jaegertracing/jaeger 服务器 -------------------------------- traefik ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :锁定版本: 3.3.7(2025-01-06 ~ 2025-05-05) :文档: https://doc.traefik.io/ :github: https://github.com/traefik/traefik