GOOS = MAC GOARCH = AMD64 GO

sudo $GOOS=linux GOARCH=amd64 go build -o main
Restu Wahyu Saputra