go get github.com/google/uuid
package main import ( "fmt" "github.com/google/uuid" ) func main() { uuid := uuid.NewString() fmt.Printf("uuid: %v\n", uuid) }