uuidv7

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNew

func MustNew() string

MustNew returns a time-sortable UUID version 7 string or panics.

func New

func New() (string, error)

New returns a time-sortable UUID version 7 string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL