$ gotip version
go version devel +5f0a9ba134 Tue Mar 20 22:46:00 2018 +0000 linux/amd64
Note as the second gofmt invocation changes the code again:
$ cat test.go
package p
func f() {
foo(); /* one */ fooooo(); /* two */
}
$ cat test.go | gofmt
package p
func f() {
foo() /* one */
fooooo() /* two */
}
$ cat test.go | gofmt | gofmt
package p
func f() {
foo() /* one */
fooooo() /* two */
Note as the second
gofmtinvocation changes the code again: