From 18b6e983606d192c6836bd9ec0cb603f7b64a342 Mon Sep 17 00:00:00 2001 From: Ben Luddy Date: Thu, 7 Dec 2023 16:42:53 -0500 Subject: [PATCH] Note behavior of Unmarshal of unrecognized tags into interface{}. Signed-off-by: Ben Luddy --- decode.go | 1 + 1 file changed, 1 insertion(+) diff --git a/decode.go b/decode.go index bc41565a..09c325d7 100644 --- a/decode.go +++ b/decode.go @@ -51,6 +51,7 @@ import ( // CBOR null and undefined values decode to nil. // CBOR times (tag 0 and 1) decode to time.Time. // CBOR bignums (tag 2 and 3) decode to big.Int. +// CBOR tags with an unrecognized number decode to cbor.Tag // // To unmarshal a CBOR array into a slice, Unmarshal allocates a new slice // if the CBOR array is empty or slice capacity is less than CBOR array length.