Go 模块是 Go 1.11 引入的依赖管理系统。通过包含模块路径和依赖的 go.mod 文件定义模块。使用 go get 添加依赖,go mod tidy 清理。支持语义版本和替换指令。现代 Go 开发必不可少。
go.mod
go get
go mod tidy