-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
I would like to encode CSV like data using the tag 275. I did the following:
// Create encoder
var enc *cbor.Encoder
enc = cbor.NewEncoder(writer)
// Encode a map-like serialized array
err = enc.Encode(cbor.RawTag{Number: 275})
if err != nil {
return fmt.Errorf("Can not encode tag 275: %w", err);
}
// Encode begin of indefinite array
err = enc.StartIndefiniteArray()
if err != nil {
return fmt.Errorf("Can not encode start of indefinite array: %w", err)
}This generates:
d9 01 13: Tag 275f6: Null, because content ofRawTagis nil9f: Start of indefinite array
How to get rid of the f6?
The struct RawTag seems to require always some content. This makes it impossible to stream the content.
Metadata
Metadata
Assignees
Labels
No labels