By "unknown type", do you mean you want to unmarshal this CBOR map into a struct?
You need some way of identifying what the data is semantically, otherwise it might unmarshal successfully into multiple different structs. I believe the CBOR native way of doing this is with "tags": https://tools.ietf.org/html/rfc7049#section-2.4 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/23340754-261b-4b1f-982e-4a519677fbc6o%40googlegroups.com.