github.com/google/uuid

Google UUID

Package uuid generates and inspects UUIDs.

78

Decision Signals

Health score 78/100, confidence 100/100.

Strong
Maintenance 38
Adoption 100
Security 92
Maturity 100
Developer DX 83
Confidence 100

Install

go get github.com/google/uuid

Package Data

updated May 28, 2026
Latest versionv1.6.0
Imported by113.5K packages
Stars6.1K
Forks422
Last activity1 years ago
Latest releasev1.6.0 (2 years ago)
LicenseBSD-3-Clause
Known vuln records0

API Surface

82 symbols
SymbolKindSynopsis
Domain Type type Domain byte
Domain.String Method func (d Domain) String() string
NullUUID Type type NullUUID struct{ ... }
NullUUID.MarshalBinary Method func (nu NullUUID) MarshalBinary() ([]byte, error)
NullUUID.MarshalJSON Method func (nu NullUUID) MarshalJSON() ([]byte, error)
NullUUID.MarshalText Method func (nu NullUUID) MarshalText() ([]byte, error)
NullUUID.Scan Method func (nu *NullUUID) Scan(value interface{}) error
NullUUID.UUID Field UUID UUID
NullUUID.UnmarshalBinary Method func (nu *NullUUID) UnmarshalBinary(data []byte) error
NullUUID.UnmarshalJSON Method func (nu *NullUUID) UnmarshalJSON(data []byte) error
NullUUID.UnmarshalText Method func (nu *NullUUID) UnmarshalText(data []byte) error
NullUUID.Valid Field Valid bool

Maintained Alternatives

limited recent repository activity

#1 uuid

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

Go UUID Libraries 1.8K stars 22.7K imported-by 100% confidence
93

Similar Packages

Go UUID Libraries

#1 uuid

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

Go UUID Libraries 1.8K stars 22.7K imported-by 100% confidence
93

#2 uuid

Generate, encode, and decode UUIDs v1 with fast or cryptographic-quality random node identifier.

Go UUID Libraries 0 stars 5 imported-by 45% confidence
53

#3 nanoid

Package nanoid provides fast and convenient unique string generator.

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

#4 ksuid

K-Sortable Globally Unique IDs

Go UUID Libraries 0 stars 0 imported-by 40% confidence
44

#5 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 0 imported-by 25% confidence
44