Added support for marshaling/unmarshaling of MongoDB's BSON UUID binary format#40
Added support for marshaling/unmarshaling of MongoDB's BSON UUID binary format#40inliquid wants to merge 3 commits intogoogle:masterfrom inliquid:master
Conversation
…marshaling of MongoDB's BSON binary UUID format with new (recommended) UUID as default kind (0x04). - Introduced SetBSONKind function to make user able to set different BSON kind.
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
Since you added |
|
this would be super useful for my purposes |
|
Thanks. Not sure if this gonna be merged, but you can use either my repo (https://github.com/inliquid/uuid) or fork it for yourself. Note, that if you are using modules, you have to run |
|
Sorry for the delay in response. This change will create an extra dependency for every package that includes the uuid package. Since uuids have a very fixed form, it would be better to just generate the encoded version directly and not use the extra package. I am a little concerned that we will end up adding marshalling/unmarshalling for every various type of encoding. |
|
Another approach to supporting UUIDs for BSON directly in your client project is to use the |
|
what? no |
|
Updated the link, if the comment was about that. |
Added support for marshaling/unmarshaling of MongoDB's BSON UUID binary format by implementing bson.Getter/Setter interfaces