You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 years ago | |
|---|---|---|
| .. | ||
| BUILD.bazel | 7 years ago | |
| README.md | 7 years ago | |
| doc.go | 7 years ago | |
| uuid.go | 7 years ago | |
README.md
uuid
uuid is a lightweight implementation for Univerally unique identifier.
Usage
var id UUID = uuid.Rand()
fmt.Println(id.Hex())
fmt.Println(id.Raw())
id1, err := uuid.FromStr("1870747d-b26c-4507-9518-1ca62bc66e5d")
id2 := uuid.MustFromStr("1870747db26c450795181ca62bc66e5d")
fmt.Println(id1 == id2) // true