Side by Side Diff: src/cmd/gofmt/testdata/stdin7.golden
Issue 142360043 :
code review 142360043: go/format, cmd/gofmt: fix issues with partial Go code w... (Closed)
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
OLD NEW
(Empty) 1
//gofmt -stdin
2
3
if err != nil {
4
source := strings.NewReader(`lin
e 1.
5 line 2.
6 `)
7
return source
8
}
9
10
f := func(hat, tail string) {
11
12
fmt.Println(hat+`
13 foo
14
15
16 `+tail,
17
"more",
18
"and more")
19
}
OLD NEW