Skip to content

Instantly share code, notes, and snippets.

View IamTyrone's full-sized avatar

Tyrone Mguni IamTyrone

View GitHub Profile
@IamTyrone
IamTyrone / mongo_registry.go
Created December 19, 2022 06:43 — forked from SupaHam/mongo_registry.go
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 (