-
|
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: 3 comments
-
|
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.
-
|
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.
-
|
This discussion has been migrated to cue-lang/cue#600. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
In CUE, currently the only way to get these values are doing something like:
Which results in
stringfortypeIn the API you can use
Value.Elem()to get the same.