On 4/23/2011 10:37 PM, Adam D. Ruppe wrote:
http://golang.org/cmd/gofmt/
Oh my. Check this out:
Examples
To check files for unnecessary parentheses:
gofmt -r '(a) - a' -l *.go
To remove the parentheses:
What a scary example. What an AST considers unnecessary parenthesis
I think this is a module (a standard command) of the Go standard library, it
formats Go code in a standard way:
http://golang.org/cmd/gofmt/
People use it, it's a way to enforce a shared coding style in the community
of programmers of a language. So they are able to share modules with each
http://golang.org/cmd/gofmt/
Oh my. Check this out:
Examples
To check files for unnecessary parentheses:
gofmt -r '(a) - a' -l *.go
To remove the parentheses:
What a scary example. What an AST considers unnecessary parenthesis
is probably very different from what I consider