cuelang.org/go@v0.10.1/cue/format/testdata/imports.txtar (about) 1 sort-imports 2 3 -- imports.input -- 4 package foo 5 6 import ( 7 "cuelang.org/go/foo" 8 "cuelang.org/go/bar" 9 "time" 10 ) 11 12 import ( 13 time1 "time" 14 15 // comment f2 16 f2 "cuelang.org/go/foo" 17 f1 "cuelang.org/go/foo" 18 ) 19 20 import ( 21 time2 "time" 22 23 same "cuelang.org/go/foo" // comment 1 24 same2 "cuelang.org/go/foo" // comment 2 25 ) 26 27 28 a: time.time 29 b: foo.foo 30 c: bar.Bar 31 -- imports.golden -- 32 package foo 33 34 import ( 35 "cuelang.org/go/foo" 36 "cuelang.org/go/bar" 37 "time" 38 ) 39 40 import ( 41 time1 "time" 42 43 // comment f2 44 f2 "cuelang.org/go/foo" 45 f1 "cuelang.org/go/foo" 46 ) 47 48 import ( 49 time2 "time" 50 51 same "cuelang.org/go/foo" // comment 1 52 same2 "cuelang.org/go/foo" // comment 2 53 ) 54 55 a: time.time 56 b: foo.foo 57 c: bar.Bar