uuid

package
v2.33.10 Latest Latest
Warning

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

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

Documentation

Overview

Package uuid is a wrapper to github.com/google/uuid

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(value string) bool

func StringList added in v2.22.0

func StringList(ids ...UUID) []string

Types

type UUID

type UUID string
const EmptyUUID UUID = UUID("00000000-0000-0000-0000-000000000000")

func New

func New() UUID

New returns a random UUID

func (UUID) IsValid

func (uuid UUID) IsValid() bool

func (UUID) String

func (uuid UUID) String() string

func (UUID) StringPtr

func (uuid UUID) StringPtr() *string

func (UUID) Validate

func (uuid UUID) Validate() (err error)

Jump to

Keyboard shortcuts

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