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