summaryrefslogtreecommitdiff
path: root/src/cmd/gofmt/testdata/stdin1.input
Commit message (Collapse)AuthorAgeFilesLines
* cmd/gofmt: make test files self-describingRobert Griesemer2014-08-211-0/+2
| | | | | | | | | | | | | | | | | | | 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
* gofmt: accept program fragments on standard inputRuss Cox2011-09-121-0/+3
This makes it possible to grab a block of code in an editor and pipe it through gofmt, instead of having to pipe in the entire file. R=gri CC=golang-dev https://golang.org/cl/4973074