代码速记 / 0 / 0 / 创建于 2年前 / 更新于 2年前
# 编译 Go 程序并指定可执行程序文件名 $ go build -o main main.go # 编译 Go 程序并禁用内联禁用优化,一般调试时使用 $ go build -gcflags "-N -l -m"
# 为包添加依赖项 $ go get example.com/pkg # 为包添加依赖项并更新其全部依赖 $ go get -u example.com/pkg
# 安装指定版本的包 $ go install example.com/pkg@v1.2.3
我要举报该,理由是: