1 // This is a package for testing comment placement by go/printer.
5 // The SZ struct; it is empty.
8 // The S0 struct; no field is exported.
10 // contains filtered or unexported fields
13 // The S1 struct; some fields are not exported.
16 A, B, C float // 3 exported fields
17 D int // 2 unexported fields
18 // contains filtered or unexported fields
21 // The S2 struct; all fields are exported.
24 A, B, C float // 3 exported fields
27 // The IZ interface; it is empty.
30 // The I0 interface; no method is exported.
32 // contains filtered or unexported methods
35 // The I1 interface; some methods are not exported.
38 F(x float) float // exported methods
39 // contains filtered or unexported methods
42 // The I2 interface; all methods are exported.
45 F(x float) float // exported method
46 G(x float) float // exported method
49 // The S3 struct; all comments except for the last one must appear in the export.
51 // lead comment for F1
52 F1 int // line comment for F1
53 // lead comment for F2
54 F2 int // line comment for F2
55 // contains filtered or unexported fields