1
// This is a package for testing comment placement by go/printer.
6
// The SZ struct; it is empty.
9
// The S0 struct; no field is exported.
11
// contains unexported fields
14
// The S1 struct; some fields are not exported.
17
A, B, C float // 3 exported fields
18
D int // 2 unexported fields
19
// contains unexported fields
22
// The S2 struct; all fields are exported.
25
A, B, C float // 3 exported fields
28
// The IZ interface; it is empty.
31
// The I0 interface; no method is exported.
33
// contains unexported methods
36
// The I1 interface; some methods are not exported.
39
F(x float) float // exported methods
40
// contains unexported methods
43
// The I2 interface; all methods are exported.
46
F(x float) float // exported method
47
G(x float) float // exported method
50
// The S3 struct; all comments except for the last one must appear in the export.
52
// lead comment for F1
53
F1 int // line comment for F1
54
// lead comment for F2
55
F2 int // line comment for F2
56
// contains unexported fields