我想在 Linux (Ubuntu) 的 Windows 10 中編譯我的 Go 代碼。我使用命令:SET GOOS=linux SET GOARCH=amd64 go build .\main.go但編譯器會創建一個 .exe 文件。如何為 linux 交叉編譯這段代碼? 查看完整描述