...

Text file src/go/doc/comment/testdata/code6.txt

Documentation: go/doc/comment/testdata

     1-- input --
     2Run this program:
     3
     4func main() {
     5	fmt.Println("hello, world")
     6}
     7
     8Or this:
     9
    10go func() {
    11	fmt.Println("hello, world")
    12}()
    13-- gofmt --
    14Run this program:
    15
    16	func main() {
    17		fmt.Println("hello, world")
    18	}
    19
    20Or this:
    21
    22	go func() {
    23		fmt.Println("hello, world")
    24	}()

View as plain text