The Well Rounded Engineer's Notebook

mspetrovic at gmail dot com

Formatting curl output

Sometimes all you need from curl is the HTTP response code $ curl -s -w "%{response_code}" -o /dev/null ; echo 200

Using make to articulate Go builds

Go best practices indicate that code and builds be kept simple. But sometimes we need a bit more in the way of declaratively configured builds. Often one will see build instructions containing nothing more than $ go test $ go build This is great for simple projects, and lacking any other instructions or build script, the reader knows this project tests and builds with those two commands. However, when these projects get used in production support, it’s important to have more information about the build in the final output.