前端工程师,来自吉林延边。这里是会记录一些自己的闲散笔记。欢迎加V(zeekim2020)交流!

阅读 972

Windows

$ GOOS=windows GOARCH=386 go build -ldflags "-s -w" main.go
$ GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" main.go


Linux

$ GOOS=linux GOARCH=386 go build -ldflags "-s -w" main.go
$ GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" main.go


macOS

$ GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" main.go
[编辑于 2019/04/20 00:10]