Registry / utility / google-uuid

google-uuid

JSON →
library1.6.0gogounverified

Package uuid generates and inspects UUIDs based on RFC 9562.

go get github.com/google/uuid
INSTALL
IMPORT
SIG · GOOGLE-UUID
G
google-uuid
utilitygov1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

uuid
✓ github.com/google/uuid

Generate a new UUID v4 and print it.

package main import ( "fmt" "github.com/google/uuid" ) func main() { id := uuid.New() fmt.Println(id.String()) }
Debug
Known issues
gotchauuid.New() returns a UUID v4 (random); for other versions use specific functions like uuid.NewUUID() for v1.
fix
Use uuid.New() for random UUIDs; use uuid.NewUUID() for time-based UUIDs.
affects: >=1.0.0
Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
google-uuid — go get google-uuid · libregistry