uuid4

package
v0.0.0-...-837eb61 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

uuid4 wraps github.com/gofrs/uuid in a way that enforces version 4

Index

Constants

This section is empty.

Variables

View Source
var ErrorNotVersion4 = errors.New("UUID is not version 4")

Functions

This section is empty.

Types

type UUID

type UUID struct {
	uuid.UUID
}

func FromString

func FromString(s string) (UUID, error)

func Must

func Must(i UUID, err error) UUID

func New

func New() (UUID, error)

func NewV4

func NewV4() (UUID, error)

NewV4 is a convenience function, making this a nicer-fitting drop-in replacement.

Jump to

Keyboard shortcuts

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