Cross-compile linux of golang under windows
Enterprise
2023-04-09 21:20:00
views: null
cmd:
1 2 3 |
set GOARCH=amd64 set GOOS=linux go build xxx.go |
powershell:
1 2 3 |
$ env :GOOS= "linux" $ env :GOARCH= "amd64" go build xxx.go |
Origin blog.csdn.net/dyyzlzc/article/details/113703190