SPB Git

Repository Public

ids.go 343 B 14 lines go

1// Package ids generates identifiers. All primary keys are UUIDv7 (time-ordered).2package ids34import "github.com/google/uuid"56// New returns a new UUIDv7. It panics only if the system entropy source fails.7func New() uuid.UUID {8	id, err := uuid.NewV7()9	if err != nil {10		panic("ids: entropy source failed: " + err.Error())11	}12	return id13}14
Files main
Menu

Theme