We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 759464f + 63541e3 commit 20004b3Copy full SHA for 20004b3
cbor/cbor.go
@@ -32,6 +32,7 @@ const (
32
CBOR_MAX_UINT_SIMPLE uint8 = 0x17
33
34
// Useful tag numbers
35
+ CborTagCbor = 24
36
CborTagRational = 30
37
CborTagSet = 258
38
CborTagMap = 259
cbor/value.go
@@ -60,6 +60,8 @@ func (v *Value) UnmarshalCBOR(data []byte) error {
60
return err
61
}
62
switch tmpTag.Number {
63
+ case CborTagCbor:
64
+ v.value = tmpTag.Content
65
case CborTagRational:
66
var tmpRat []int64
67
if _, err := Decode(tmpTag.Content, &tmpRat); err != nil {
0 commit comments