UUIDV7
UUIDV7 is a small Go package for generating time-sortable UUID version 7 strings.
Install
go get github.com/containeroo/uuidv7
Usage
package main
import (
"fmt"
uuidv7 "github.com/containeroo/uuidv7"
)
func main() {
id, err := uuidv7.New()
if err != nil {
panic(err)
}
fmt.Println(id)
}
Use uuidv7.MustNew() when generation failure should panic.