cuelang.org/go@v0.10.1/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 "mod.test/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: "mod.test/blah" 25 language: version: "v0.9.0" 26 -- out/trim -- 27 == b.cue 28 package b 29 30 import ( 31 ) 32 33 #Def: { 34 y: 5 35 } 36 37 x: #Def 38 x: {}