summaryrefslogtreecommitdiffstats
path: root/src/go/doc/comment/testdata/code6.txt
blob: d2915d10680158fa9b8002fd79d799e2057f0358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- input --
Run this program:

func main() {
	fmt.Println("hello, world")
}

Or this:

go func() {
	fmt.Println("hello, world")
}()
-- gofmt --
Run this program:

	func main() {
		fmt.Println("hello, world")
	}

Or this:

	go func() {
		fmt.Println("hello, world")
	}()