1
0
mirror of https://github.com/golang/go synced 2024-11-08 19:46:23 -07:00
go/src/cmd/gofmt/testdata/stdin1.input
Robert Griesemer 67812a7cd9 cmd/gofmt: make test files self-describing
1) Interpret a comment of the form

//gofmt <flags>

in test files to drive the respective
gofmt command. Eliminates the need to
enumerate all test files in the test
harness.

2) Added -update flag to make it easier
to update test cases.

LGTM=josharian
R=golang-codereviews, josharian
CC=golang-codereviews
https://golang.org/cl/130440043
2014-08-21 17:25:13 -07:00

6 lines
32 B
Plaintext

//gofmt -stdin
if x {
y
}