Posts by Filippo Valsorda

Setting Go variables from the outside

Published on by Filippo Valsorda.

CloudFlare's DNS server, RRDNS, is written in Go and the DNS team used to generate a file called version.go in our Makefile. version.go looked something like this: // THIS FILE IS AUTOGENERATED BY THE MAKEFILE. DO NOT EDIT. // +build make package version var ( Version = "2015.6.2-6-gfd7e2d1-dev"