This website requires JavaScript.
Explore
Help
Register
Sign In
qbit
/
go
Watch
1
Star
0
Fork
0
You've already forked go
mirror of
https://github.com/golang/go
synced
2024-11-12 13:40:21 -07:00
Code
Releases
Activity
efb1a7524e
go
/
src
/
cmd
/
gofmt
/
testdata
/
stdin1.input
6 lines
32 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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 18:25:13 -06:00
//gofmt -stdin
gofmt: accept program fragments on standard input 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
2011-09-12 13:41:49 -06:00
if x {
y
}
Copy Permalink