Are you developing a software using golang on a macOS or other operating system (OS) and wanted to compile for other OS? You can compile a golang binary for other platforms using GOOS and GOARCH. Here is an example in compiling a golang binary for Linux on a macOS terminal: GOOS=linux GOARCH=amd64 go build GOOS […]
