gofmt. slight change of func signatures to conform to Go common practice

Just a small pull request to help the project get started.