模块管理的命令行工具。go mod init 创建模块,go mod tidy 清理依赖项,go mod download 获取模块。管理 go.mod 和 go.sum 文件。依赖管理和版本控制的基本命令。
go mod init
go mod tidy
go mod download