How to compile a Go package on Windows?

Wasly Sevenx picture Wasly Sevenx · Jul 4, 2012 · Viewed 37.9k times · Source

The documentation is all for Mac OS X and Linux, and I wish to know how to compile a Go package on the Windows platform. On Windows, I do not know how to write the make file and which tool to use to make it.

It seems that there is not a tool named make or go make to use with the installation file of Go development tools.

Answer

peterSO picture peterSO · Jul 4, 2012

Compiling a Go package on Windows is like compiling a Go package on Linux or Mac OS X. Use the go build command. There is no make file.

Here are some instructions.

Getting Started

How to Write Go Code

Compile packages and dependencies