CodeWord: Apokalyptik

The random things that spew forth from my brain…

Menu
Search
Skip to content
  • Home

build

A little GO gem…

way down at the bottom (at the time) of this reddit thread was a nugget of goodness…

So, you can define the same Run(string) int function in each of run_{windows,linux,darwin}.go, and go build will compile only the relevant function.

Tested it this morning and it worked great (though doesn’t work with go run *… you have to actually build it) 🙂

2013/07/09apokalyptik arch, build, go, golang, os, platform Leave a comment
Proudly powered by WordPress | Theme: Sorbet by WordPress.com.