I love the role that gofmt
has in Go programming. We would rather, though, that the following:
func somefunc(
a *sometype, // Explanation of a
b int, // Explanation of b
longName float64, // Explanation of longName
) {
...
be able to be formatted like:
func somefunc(
a *sometype, // Explanation of a
b int, // Explanation of b
longName float64, // Explanation of longName
) {
...
similar to how structs are formatted, and keeping with our coding standards for other languages. Is there any provision for accommodating local preferences like these, or is this "not the way we do things around here"? I couldn't find any access to the patterns that gofmt
uses, so my guess is "no".