whyrusleeping / cbor-gen

Codegen for cbor codecs on your types
MIT License
35 stars 25 forks source link

support for `map[string]string` #87

Closed bnewbold closed 11 months ago

bnewbold commented 11 months ago

It's possible i'm confused, but it seems that cbor-gen doesn't work with most map[string]* types, notably map[string]string. I think the code basically supports maps from strings to structs or pointers to structs.

If it is easy to knock out at the same time, support for map[string]int64 and map[string]bool would be great.

Stebalien commented 11 months ago

Fixed by merging #83.

Stebalien commented 11 months ago

Note, this only adds string support. I'd be happy to merge support for other types if you can make a PR, but I'd really like to do this without special-casing every type...