Skip to content

[cbor] Unable to use numbers as map keys #35

Description

@dignifiedquire

I am trying to marshal a type map[uint64]*somestruct, but cannot do so, as I get the error messags unsupported map key type "uint64". This is really unfortunate, because one of the great things about cbor is that I can use numbers as keys in maps.

Code that throws the error: https://github.com/polydawn/refmt/blob/master/obj/marshalMapWildcard.go#L24-L55

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions