Just some quick and dirty go code that might come in useful in future. The alternative was to write them as a series of gists but I think it's nicer to have them all indexable in a repository that exists locally as wel.