uuid

package
v0.0.0-...-f2c9da1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewString

func NewString() string

NewString equals New().String()

func NewV7String

func NewV7String() string

NewV7String equals NewV7().String()

Types

type UUID

type UUID [16]byte

func New

func New() UUID

New UUID V4

func NewV7

func NewV7() UUID

NewV7 return UUID v7 which is a modernized version of UUID, designed specifically for environments that need time-ordered unique identifiers while avoiding dependencies on hardware (like MAC addresses in UUID v1). It’s built around Unix time, offering millisecond precision, which makes it more intuitive and compatible with modern systems than older UUID versions like UUID v1 and v6.

func (UUID) String

func (uuid UUID) String() string

Jump to

Keyboard shortcuts

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