github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/tools/trim/testdata/rmimport.txtar (about) 1 // Issue #716 2 // 3 // NOTE removing the empty import decl is more a job for 4 // cue/format or astutil.Sanitize. 5 6 -- a/a.cue -- 7 package a 8 9 A: 5 10 -- b.cue -- 11 package b 12 13 import ( 14 "example.com/blah/a" 15 ) 16 17 #Def: { 18 y: 5 19 } 20 21 x: #Def 22 x: y: a.A 23 -- cue.mod/module.cue -- 24 module: "example.com/blah" 25 -- out/trim -- 26 == b.cue 27 package b 28 29 import ( 30 ) 31 32 #Def: { 33 y: 5 34 } 35 36 x: #Def 37 x: {}