-
Originally opened by @zzxwill in cuelang/cue#600 In
Here is my code, but I just could not even get the values, nor their elements.
I also put the .cue file and the go file at https://github.com/zzxwill/try-cloudnative/blob/master/poc.go. Please help take a look at this question. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Original reply by @mpvl in cuelang/cue#600 (comment) In CUE, currently the only way to get these values are doing something like:
Which results in In the API you can use |
Beta Was this translation helpful? Give feedback.
-
Original reply by @mpvl in cuelang/cue#600 (comment) We are considering allowing
one could write
for Similarly then, and assuming we will support using a selector for numeric values, one could do Anyway, that is just a thought. But this seems to come up often enough to warrant it. People can weigh in here if they think it is useful. |
Beta Was this translation helpful? Give feedback.
Original reply by @mpvl in cuelang/cue#600 (comment)
In CUE, currently the only way to get these values are doing something like:
Which results in
string
fortype
In the API you can use
Value.Elem()
to get the same.