golang使用笔记
从vender迁移到gomod示例
测试repo https://github.com/nurdinirashidah/With-glide.lock
删除vender
go mod init xxx
go mod tidy
go build .
windows下交叉编译linux
go env -w CGO_ENABLED=0
go env -w GOARCH=amd64
go env -w GOOS=linux
go build .
测试repo https://github.com/nurdinirashidah/With-glide.lock
删除vender
go mod init xxx
go mod tidy
go build .
go env -w CGO_ENABLED=0
go env -w GOARCH=amd64
go env -w GOOS=linux
go build .