Autogenerate all struct definitions with `go generate`

* Starting with go 1.4, this is more idiomatic
* It is also less error-prone