github.com/q45/go@v0.0.0-20151101211701-a4fb8c13db3f/src/go/doc/testdata/d.2.golden (about) 1 // 2 PACKAGE d 3 4 IMPORTPATH 5 testdata/d 6 7 FILENAMES 8 testdata/d1.go 9 testdata/d2.go 10 11 CONSTANTS 12 // CBx constants should appear before CAx constants. 13 const ( 14 CB2 = iota // before CB1 15 CB1 // before CB0 16 CB0 // at end 17 ) 18 19 // CAx constants should appear after CBx constants. 20 const ( 21 CA2 = iota // before CA1 22 CA1 // before CA0 23 CA0 // at end 24 ) 25 26 // C0 should be first. 27 const C0 = 0 28 29 // C1 should be second. 30 const C1 = 1 31 32 // C2 should be third. 33 const C2 = 2 34 35 // 36 const ( 37 // Single const declarations inside ()'s are considered ungrouped 38 // and show up in sorted order. 39 Cungrouped = 0 40 ) 41 42 43 VARIABLES 44 // VBx variables should appear before VAx variables. 45 var ( 46 VB2 int // before VB1 47 VB1 int // before VB0 48 VB0 int // at end 49 ) 50 51 // VAx variables should appear after VBx variables. 52 var ( 53 VA2 int // before VA1 54 VA1 int // before VA0 55 VA0 int // at end 56 ) 57 58 // V0 should be first. 59 var V0 uintptr 60 61 // V1 should be second. 62 var V1 uint 63 64 // V2 should be third. 65 var V2 int 66 67 // 68 var ( 69 // Single var declarations inside ()'s are considered ungrouped 70 // and show up in sorted order. 71 Vungrouped = 0 72 ) 73 74 75 FUNCTIONS 76 // F0 should be first. 77 func F0() 78 79 // F1 should be second. 80 func F1() 81 82 // F2 should be third. 83 func F2() 84 85 86 TYPES 87 // T0 should be first. 88 type T0 struct{} 89 90 // T1 should be second. 91 type T1 struct{} 92 93 // T2 should be third. 94 type T2 struct{} 95 96 // TG0 should be first. 97 type TG0 struct{} 98 99 // TG1 should be second. 100 type TG1 struct{} 101 102 // TG2 should be third. 103 type TG2 struct{} 104