Delta Between Two Patch Sets: src/cmd/gofmt/testdata/stdin7.input
Issue 142360043 :
code review 142360043: go/format, cmd/gofmt: fix issues with partial Go code w... (Closed)
Left Patch Set: diff -r 932fe22207465e6c4bcdae29f5c519ba069f8927 https://code.google.com/p/go
Right Patch Set: diff -r 8f36a32a9d036f86fb956c8538142eb384bd1a4a https://code.google.com/p/go
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/long_test.go
src/cmd/gofmt/testdata/stdin6.golden
src/cmd/gofmt/testdata/stdin6.input
src/cmd/gofmt/testdata/stdin7.golden
src/cmd/gofmt/testdata/stdin7.input
src/go/format/format.go
src/go/format/format_test.go
LEFT RIGHT
(no file at all) 1
//gofmt -stdin
2
3
if err != nil {
4 source := string
s.NewReader(`line 1.
5 line 2.
6 `)
7 return source
8 }
9
10 f:=func( hat, tail stri
ng){
11
12
13
14 fmt. Println
( hat+ `
15 foo
16
17
18 `+ tail ,
19 "more" ,
20 "and more" )
21 }
LEFT RIGHT