...

Text file src/cuelang.org/go/tools/trim/testdata/empty.txtar

Documentation: cuelang.org/go/tools/trim/testdata

     1Don't remove empty structs.
     2
     3-- in.cue --
     4deployment: [ID=string]: {
     5}
     6
     7deployment: alertmanager: {
     8	empty: {}
     9	volumes: [{
    10		name: "alertmanager"
    11		emptyDir: {}
    12	}]
    13}
    14-- out/trim --
    15== in.cue
    16deployment: [ID=string]: {
    17}
    18
    19deployment: alertmanager: {
    20	empty: {}
    21	volumes: [{
    22		name: "alertmanager"
    23		emptyDir: {}
    24	}]
    25}

View as plain text