James Cunningham

Binary Sizes in Go

By James Cunningham in golang on 18 February 2016

An issue often cited with Go is the large binary sizes of compiled programs. With Go 1.6, a simple HTTP server will result in a binary sized over 7MB. This is not surprising given that by default Go binaries are statically compiled, meaning that all required shared libraries are included in the output and massively inflate the file size.


Compile Time Variables in Go

By James Cunningham in golang on 1 July 2015

When I and others ship software releases, I want to embed build information. In particular I find embedding the VCS revision at build time, this makes tracking down bugs in releases significantly easier than version numbers. Historically this was achieved by generating a file in the Makefile.