summaryrefslogtreecommitdiffstats
path: root/src/cmd/gofmt/testdata/stdin7.input
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gofmt/testdata/stdin7.input')
-rw-r--r--src/cmd/gofmt/testdata/stdin7.input21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cmd/gofmt/testdata/stdin7.input b/src/cmd/gofmt/testdata/stdin7.input
new file mode 100644
index 0000000..fd772a3
--- /dev/null
+++ b/src/cmd/gofmt/testdata/stdin7.input
@@ -0,0 +1,21 @@
+ //gofmt -stdin
+
+ if err != nil {
+ source := strings.NewReader(`line 1.
+line 2.
+`)
+ return source
+ }
+
+ f:=func( hat, tail string){
+
+
+
+ fmt. Println ( hat+ `
+ foo
+
+
+ `+ tail ,
+ "more" ,
+ "and more" )
+ }