uuid

package
v0.0.0-...-12e214a Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID interface {
	Bytes() []byte
	String() string
	Array() [16]byte
}

func New

func New(e ...byte) (UUID, error)

New makes a new UUID interface; if input len is 0, executed like uuid.New(), then it will generate a random uuid; if input len is 16, like uuid.New([16]byte{}...), then it will directly use the 16 bytes as the uuid; if input len is something other than 0 or 16, then the input seeds a new psudo-random uuid.

func StringtoUUID

func StringtoUUID(s string) (UUID, error)

Jump to

Keyboard shortcuts

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