github.com/sbinet/go@v0.0.0-20160827155028-54d7de7dd62b/src/cmd/gofmt/testdata/import.input (about) 1 package main 2 3 import ( 4 "fmt" 5 "math" 6 "log" 7 "errors" 8 "io" 9 ) 10 11 import ( 12 "fmt" 13 14 "math" 15 16 "log" 17 18 "errors" 19 20 "io" 21 ) 22 23 import ( 24 "fmt" 25 "math" 26 "log" 27 "errors" 28 "io" 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 "fmt" // for Printf 44 "math" 45 "log" // for Fatal 46 "errors" 47 "io" // for Reader 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 "fmt" // for Printf 79 "math" 80 "log" // for Fatal 81 "errors" 82 "io" // for Reader 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 "math" 99 "log" // for Fatal 100 "errors" 101 "io" // for Reader 102 103 "fmt" // for Printf 104 "math" 105 "log" // for Fatal 106 "errors" 107 "io" // for Reader 108 ) 109 110 // Test deduping and extended sorting 111 import ( 112 "B" // B 113 a "A" // aA 114 b "A" // bA2 115 b "A" // bA1 116 . "B" // .B 117 . "B" 118 "C" 119 "C" 120 "C" 121 a "D" // aD 122 "B" 123 _ "B" // _b 124 ) 125 126 import ( 127 "dedup_by_group" 128 "dedup_by_group" 129 130 "dedup_by_group" 131 )