Left: | ||
Right: |
LEFT | RIGHT |
---|---|
(no file at all) | |
1 // Copyright 2013 The Go Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style | |
3 // license that can be found in the LICENSE file. | |
4 | |
5 package testing_test | |
6 | |
7 import "fmt" | |
8 | |
9 // This example tests that testing correctly | |
10 // handles whitespace in examples. | |
11 // https://golang.org/issue/6416 | |
12 func Example_whitespace() { | |
13 fmt.Println("\n\nWhereof one cannot speak, \nthereof one must be silent. \n\n") | |
14 // Output: | |
15 // Whereof one cannot speak, | |
16 // thereof one must be silent. | |
17 } | |
LEFT | RIGHT |