uuid

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package uuid provides a UUID (Universally Unique Identifier) implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting added in v0.0.15

type Setting struct {
}

type UUID

type UUID struct{}

UUID represents a UUID generator

func New

func New(_ ...Setting) *UUID

New creates a new UUID instance

func (UUID) Gen

func (U UUID) Gen() string

Gen generates a new UUID

func (UUID) Name

func (U UUID) Name() string

Name returns the name of the UUID generator

func (UUID) Size

func (U UUID) Size() int

Size returns the size of the UUID in bits

func (UUID) Validate

func (U UUID) Validate(id string) bool

Validate checks if the provided ID is a valid UUID

Jump to

Keyboard shortcuts

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