Determine a Value's Definitions #1249
Unanswered
pahansen95
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
-
How can I retrieve what Definitions a
cue.Value
implements when using Cue's Go API?Given:
I'm trying to do the following:
In this example what I'm trying to do is figure out what type of target I'm executing against. I assumed I would be able to determine that via the Definition of the struct. My workaround currently is to embed the "Classification" into the struct as a separate field.
How would you approach this in an idiomatic way using Cue's design?
Beta Was this translation helpful? Give feedback.
All reactions