cuelang.org/go@v0.10.1/internal/core/export/testdata/selfcontained/call.txtar (about)

     1  #path: a.b
     2  -- in.cue --
     3  import "struct"
     4  
     5  s: {a: 1, b: 2}
     6  
     7  a: b: {
     8  	// Do not inline `s`, as it makes calls less readable.
     9  	c: struct.MaxFields(s & d, 3)
    10  	d: {}
    11  }
    12  
    13  -- out/self/default --
    14  import "struct"
    15  
    16  // Do not inline `s`, as it makes calls less readable.
    17  c: struct.MaxFields(S & d, 3)
    18  d: {}
    19  
    20  //cue:path: s
    21  let S = {
    22  	a: 1
    23  	b: 2
    24  }