repositorypackage
0.0.0-20240305042206-a7e3dca2a87e
Repository: https://github.com/moroz/uuidv7-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
uuidv7-go
This package implements a UUIDv7 generator as specified by the New UUID Formats. The first 48 bits contain a big-endian epoch timestamp in milliseconds. This variant provides 74 bytes of entropy.
Examples
Generate UUIDv7 as string
package main
import (
"fmt"
"github.com/moroz/uuidv7-go"
)
func main() {
uuid := uuidv7.Generate()
fmt.Println(uuid)
}
$ go run .
018e0cd7-986e-7f77-a8b4-8d55de59c992
License
BSD 3-Clause "New" or "Revised" License