id

package
v0.0.0-...-ff439f2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nil = ID(uuid.Nil)

Nil is an empty (zero) ID

Functions

This section is empty.

Types

type ID

type ID uuid.UUID

ID is a unique identifier

func New

func New() ID

New returns a new unique ID

func (ID) Bytes

func (id ID) Bytes() []byte

Bytes allows ID to be used as a Key

func (ID) Equal

func (id ID) Equal(other any) bool

Equal allows ID to be compared for equality

func (ID) String

func (id ID) String() string

Jump to

Keyboard shortcuts

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