1 | package initial |
---|---|
2 | |
3 | import "fmt" // this comment should not be visible |
4 | |
5 | // init functions are not renamed |
6 | func init() { foo() } |
7 | |
8 | // Type S. |
9 | type S struct { |
10 | t |
11 | u int |
12 | } /* multi-line |
13 | comment |
14 | */ |
15 | |
16 | // non-associated comment |
17 | |
18 | /* |
19 | non-associated comment2 |
20 | */ |
21 | |
22 | // Function bar. |
23 | func bar(s *S) { |
24 | fmt.Println(s.t, s.u) // comment inside function |
25 | } |
26 | |
27 | // file-end comment |
28 |