Skip to content

Commit 4d014d2

Browse files
committed
Update CBOR docs
1 parent 8f68a02 commit 4d014d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ See [Options](#options) section for details about each setting.
373373
* Decoder always checks for invalid UTF-8 string errors.
374374
* Decoder always decodes in-place to slices, maps, and structs.
375375
* Decoder tries case-sensitive first and falls back to case-insensitive field name match when decoding to structs.
376+
* Decoder supports decoding registered CBOR tag data to interface types.
376377
* Both encoder and decoder support indefinite length CBOR data (["streaming"](https://tools.ietf.org/html/rfc7049#section-2.2)).
377378
* Both encoder and decoder correctly handles nil slice, map, pointer, and interface values.
378379

@@ -454,6 +455,7 @@ If any of these limitations prevent you from using this library, please open an
454455
* CBOR `Undefined` (0xf7) value decodes to Go's `nil` value. CBOR `Null` (0xf6) more closely matches Go's `nil`.
455456
* CBOR map keys with data types not supported by Go for map keys are ignored and an error is returned after continuing to decode remaining items.
456457
* When using io.Reader interface to read very large or indefinite length CBOR data, Go's `io.LimitReader` should be used to limit size.
458+
* When decoding registered CBOR tag data to interface type, decoder creates a pointer to registered Go type matching CBOR tag number. Requiring a pointer for this is a Go limitation.
457459

458460
<hr>
459461

0 commit comments

Comments
 (0)