xuuid

package
v2.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 1 Imported by: 8

Documentation

Overview

Package xuuid provides UUID generation utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UUID

func UUID() string

UUID returns a new version 7 UUID string.

A version 7 UUID is generated from a millisecond timestamp and random bits, so it is roughly monotonic in time. Compared with the fully random version 4, it is better suited as a database primary key or a distributed ID because it reduces index fragmentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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