github.com/sbinet/go@v0.0.0-20160827155028-54d7de7dd62b/src/cmd/gofmt/testdata/import.golden (about) 1 package main 2 3 import ( 4 "errors" 5 "fmt" 6 "io" 7 "log" 8 "math" 9 ) 10 11 import ( 12 "fmt" 13 14 "math" 15 16 "log" 17 18 "errors" 19 20 "io" 21 ) 22 23 import ( 24 "errors" 25 "fmt" 26 "io" 27 "log" 28 "math" 29 30 "fmt" 31 32 "math" 33 34 "log" 35 36 "errors" 37 38 "io" 39 ) 40 41 import ( 42 // a block with comments 43 "errors" 44 "fmt" // for Printf 45 "io" // for Reader 46 "log" // for Fatal 47 "math" 48 ) 49 50 import ( 51 "fmt" // for Printf 52 53 "math" 54 55 "log" // for Fatal 56 57 "errors" 58 59 "io" // for Reader 60 ) 61 62 import ( 63 // for Printf 64 "fmt" 65 66 "math" 67 68 // for Fatal 69 "log" 70 71 "errors" 72 73 // for Reader 74 "io" 75 ) 76 77 import ( 78 "errors" 79 "fmt" // for Printf 80 "io" // for Reader 81 "log" // for Fatal 82 "math" 83 84 "fmt" // for Printf 85 86 "math" 87 88 "log" // for Fatal 89 90 "errors" 91 92 "io" // for Reader 93 ) 94 95 import ( 96 "fmt" // for Printf 97 98 "errors" 99 "io" // for Reader 100 "log" // for Fatal 101 "math" 102 103 "errors" 104 "fmt" // for Printf 105 "io" // for Reader 106 "log" // for Fatal 107 "math" 108 ) 109 110 // Test deduping and extended sorting 111 import ( 112 a "A" // aA 113 b "A" // bA1 114 b "A" // bA2 115 "B" // B 116 . "B" // .B 117 _ "B" // _b 118 "C" 119 a "D" // aD 120 ) 121 122 import ( 123 "dedup_by_group" 124 125 "dedup_by_group" 126 )