Closed cueckoo closed 3 years ago
Original reply by @mpvl in https://github.com/cuelang/cue/issues/922#issuecomment-828200873
The problem here is that Decode
is implemented in terms of MarshalJSON, which translates bytes back to base64
. It clearly shouldn't.
Original reply by @mpvl in https://github.com/cuelang/cue/issues/922#issuecomment-828461640
Update: the expected output really should be
[98 97 114]
bar
as CUE bytes should ideally translate to []byte
in Go.
Original reply by @eonpatapon in https://github.com/cuelang/cue/issues/922#issuecomment-828487021
Right since base64.Decode return a bytes value
Originally opened by @eonpatapon in https://github.com/cuelang/cue/issues/922
What version of CUE are you using (
cue version
)?0.3.2
What did you do?
What did you expect to see?
What did you see instead?