Skip to content

Instantly share code, notes, and snippets.

View UlrichEckhardt's full-sized avatar

Ulrich Eckhardt UlrichEckhardt

View GitHub Profile
@UlrichEckhardt
UlrichEckhardt / mongo_registry.go
Last active August 28, 2025 16:15 — 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 (TypeBinaryUUID) is supported.
//
// Use as you please
package repository
import (