github.com/gofrs/uuid

uuid

Package uuid provides implementations of the Universally Unique Identifier (UUID), as specified in RFC-4122 and the Peabody RFC Draft (revision 03).

58

Decision Signals

Health score 58/100, confidence 80/100.

Review
Maintenance 15
Adoption 81
Security 92
Maturity 52
Developer DX 75
Confidence 80

Install

go get github.com/gofrs/uuid

Package Data

updated May 31, 2026
Latest versionv4.4.0+incompatible
Imported by22.7K packages
Stars0
Forks0
Last activity3 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

81 symbols
SymbolKindSynopsis
EpochFunc Type type EpochFunc func() time.Time
Gen Type type Gen struct{}
Gen.NewV1 Method func (g *Gen) NewV1() (UUID, error)
Gen.NewV3 Method func (g *Gen) NewV3(ns UUID, name string) UUID
Gen.NewV4 Method func (g *Gen) NewV4() (UUID, error)
Gen.NewV5 Method func (g *Gen) NewV5(ns UUID, name string) UUID
Gen.NewV6 Method func (g *Gen) NewV6() (UUID, error)
Gen.NewV7 Method func (g *Gen) NewV7() (UUID, error)
NewGen Function func NewGen() *Gen
NewGenWithHWAF Function func NewGenWithHWAF(hwaf HWAddrFunc) *Gen
NewGenWithOptions Function func NewGenWithOptions(opts ...GenOption) *Gen
GenOption Type type GenOption func(*Gen)

Maintained Alternatives

limited recent repository activity

#1 Google UUID

Package uuid generates and inspects UUIDs.

Go UUID Libraries 6.1K stars 0 imported-by 80% confidence
70

Similar Packages

Go UUID Libraries

#1 Google UUID

Package uuid generates and inspects UUIDs.

Go UUID Libraries 6.1K stars 0 imported-by 80% confidence
70

#2 go.uuid

Package uuid provides implementation of Universally Unique Identifier (UUID).

Go UUID Libraries 0 stars 32.8K imported-by 75% confidence
57

#3 ksuid

K-Sortable Globally Unique IDs

Go UUID Libraries 0 stars 1.8K imported-by 75% confidence
54

#4 violetear

Package violetear - HTTP router Basic example: package main import ( "fmt" "github.com/nbari/violetear" "log" "net/http" ) func catchAll(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, r.URL.Path[1:]) } func helloWorld(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, r.URL.Path[1:]) } func handleUUID(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, r.URL.Path[1:]) } func main() { router := violetear.New() router.LogRequests = true router.RequestID = "REQUEST_LOG_ID" router.AddRegex(":uuid", `[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}`) router.HandleFunc("*", catchAll) router.HandleFunc("/hello", helloWorld, "GET,HEAD") router.HandleFunc("/root/:uuid/item", handleUUID, "POST,PUT") srv := &http.Server{ Addr: ":8080", Handler: router, ReadTimeout: 5 * time.Second, WriteTimeout: 7 * time.Second, MaxHeaderBytes: 1 << 20, } log.Fatal(srv.ListenAndServe()) }

Go UUID Libraries 0 stars 87 imported-by 80% confidence
49

#5 uuid

Package uuid implements generation and manipulation of UUIDs (v1 defined in RFC 4122).

Go UUID Libraries 0 stars 5 imported-by 80% confidence
46