Command: env GOOS=target-OS GOARCH=target-architecture go build -o main *.go
Example 1: env GOOS=windows GOARCH=amd64 go build -o main.exe *.go
Example 2: env GOOS=linux GOARCH=amd64 go build -o main *.go
There was an error while loading. Please reload this page.