uuid

package
v0.0.0-...-89ab582 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUUIDBytes

func DecodeUUIDBytes(b []byte, uuid *UUID) error

func Equal

func Equal(p1, p2 *UUID) bool

func GetUUIDStrBuf

func GetUUIDStrBuf() *string

func InitUUID

func InitUUID(p *UUID)

func InitUUIDV7

func InitUUIDV7(p *UUID)

func ReleaseUUIDBuf

func ReleaseUUIDBuf(p *UUID)

func ReleaseUUIDStrBuf

func ReleaseUUIDStrBuf(p *string)

Types

type UUID

type UUID [16]byte

func GetUUIDBuf

func GetUUIDBuf() *UUID

func NewUUID

func NewUUID() (id UUID)

func NewUUIDPtr

func NewUUIDPtr() (p *UUID)

func NewUUIDV7

func NewUUIDV7() (id UUID)

func NewUUIDV7Ptr

func NewUUIDV7Ptr() (p *UUID)

func Parse

func Parse(s string) (uuid UUID, err error)

func ParseBytes

func ParseBytes(b []byte) (uuid UUID, err error)

func ParseOrZero

func ParseOrZero(s string) (uuid UUID)

func (UUID) Encode

func (id UUID) Encode(dst []byte)

func (UUID) MarshalJSON

func (id UUID) MarshalJSON() ([]byte, error)

func (*UUID) Scan

func (id *UUID) Scan(src any) error

func (UUID) String

func (id UUID) String() string

func (UUID) Value

func (id UUID) Value() (driver.Value, error)

type UUIDs

type UUIDs []UUID

func (UUIDs) Len

func (ids UUIDs) Len() int

func (UUIDs) Less

func (ids UUIDs) Less(i, j int) bool

func (UUIDs) Swap

func (ids UUIDs) Swap(i, j int)

Jump to

Keyboard shortcuts

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