You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I have to convert the cbor node to JSON, then modify the doc as a interface{}, then create a byte reader and pass it back to .FromJSON() to get a new cbor node.
Would it make sense to include an Add() method so I can make my change without all the conversions?
The text was updated successfully, but these errors were encountered:
What happens if you .Resolve(nil) (hopefully this gets the root object), then modify, then WrapObject ? Might be able to skip the (explicit) json export. (Perhaps DecodeInto can also help if that does not work).
Currently I have to convert the cbor node to JSON, then modify the doc as a interface{}, then create a byte reader and pass it back to
.FromJSON()
to get a new cbor node.Would it make sense to include an
Add()
method so I can make my change without all the conversions?The text was updated successfully, but these errors were encountered: