Apply gofmt to project

Many projects and members of the Go community have adopted the `gofmt` tool as the standard way to format Go code.  In order to make contributions to this project more accessible for others can we please apply `gofmt` to the codebase?

I personally have gofmt run on save so when trying to make a contribution to this project I received noise in the diff from the formatting changes.