Skip to content

Instantly share code, notes, and snippets.

View alexykot's full-sized avatar
🤗
by and large I'm optimistic about the way humanity is going

Alex Kotenko alexykot

🤗
by and large I'm optimistic about the way humanity is going
View GitHub Profile
@SupaHam
SupaHam / mongo_registry.go
Created November 6, 2020 23:17
mongo-go-driver UUID decoder & encoder for Golang
// This is a value (de|en)coder for the github.com/google/uuid UUID type. For best experience, register
// mongoRegistry to mongo client instance via options, e.g.
// clientOptions := options.Client().SetRegistry(mongoRegistry)
//
// Only BSON binary subtype 0x04 is supported.
//
// Use as you please
package repository
import (