uuid

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatUUID

func FormatUUID(buf []byte) (string, error)

func GenerateGoogleUUID

func GenerateGoogleUUID() (string, error)

func GenerateRandomBytes

func GenerateRandomBytes(size int) ([]byte, error)

GenerateRandomBytes is used to generate random bytes of given size.

func GenerateRandomBytesWithReader

func GenerateRandomBytesWithReader(size int, reader io.Reader) ([]byte, error)

GenerateRandomBytesWithReader is used to generate random bytes of given size read from a given reader.

func GenerateSnowFlakeId

func GenerateSnowFlakeId() int64

func GenerateUUID

func GenerateUUID() (string, error)

GenerateUUID is used to generate a random UUID

func GenerateUUIDWithReader

func GenerateUUIDWithReader(reader io.Reader) (string, error)

GenerateUUIDWithReader is used to generate a random UUID with a given Reader

func NewUUID

func NewUUID() string

func ParseUUID

func ParseUUID(uuid string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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