...

Text file src/cuelang.org/go/internal/core/export/testdata/selfcontained/call.txtar

Documentation: cuelang.org/go/internal/core/export/testdata/selfcontained

     1#path: a.b
     2-- in.cue --
     3import "struct"
     4
     5s: {a: 1, b: 2}
     6
     7a: 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/default --
    14import "struct"
    15
    16// Do not inline `s`, as it makes calls less readable.
    17c: struct.MaxFields(S & d, 3)
    18d: {}
    19
    20//cue:path: s
    21let S = {
    22	a: 1
    23	b: 2
    24}

View as plain text