Skip to content

Cross Platform Building Guide

yourfavDev edited this page Aug 22, 2021 · 3 revisions

Building the project cross-platform

Simply specify the GOOS environment variable before compiling

  • Windows: set GOOS=windows
  • Linux: set GOOS=linux

Then just type go build main.go


Make sure you have the required dependencies before actually compiling

Clone this wiki locally