slightly more idiomatic go code

- applies gofmt on the go-sources
- removes indirections to slices as they are already reference types