Cuelang trimming #3912
Unanswered
lakshy-amagi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I aim to trim down my JSON, add some customization to the input data, and provide the output data.
The way I have done this is
I create three files
and with the help of packages, I refer to the values from the input1.cue and input2.cue
and create output.cue
I integrate this in my go-code
Here this line
inst := load.Instances([]string{GetSchemaFileName(platformID, pIDMap, req, path)}, nil)
read the cue_template.cue
which is something like this -
input1.cue
input2.cue
Is there any way where I don't need to create the files?
Beta Was this translation helpful? Give feedback.
All reactions