uuid

package
v5.0.0-...-a740f93 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 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 [16]byte

func New

func New() UUID

New creates a UUID with random value.

func ParseBytes

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

ParseBytes converts a UUID in byte form to object.

func ParseString

func ParseString(str string) (UUID, error)

ParseString converts a UUID in string form to object.

func (*UUID) Bytes

func (u *UUID) Bytes() []byte

Bytes returns the bytes representation of this UUID.

func (*UUID) Equals

func (u *UUID) Equals(another *UUID) bool

Equals returns true if this UUID equals another UUID by value.

func (*UUID) String

func (u *UUID) String() string

String returns the string representation of this UUID.

Jump to

Keyboard shortcuts

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