uuid

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 2 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 struct {
	// contains filtered or unexported fields
}

func Mk_v4

func Mk_v4() (*Uuid, error)

Generate a byte buffer with a random uuid.

func NewRandom

func NewRandom() (u *Uuid)

Same as calling Mk_v4(); mirrors the name in the old (deprecated) code.google uuid code.

func (*Uuid) Equals

func (u *Uuid) Equals(u2 *Uuid) bool

Compares two uuids and returns true if they either represent the same struct (both point to same), or if the contents of each are identical.

func (*Uuid) Plain_string

func (u *Uuid) Plain_string() string

Returns a string representing the UUID without any separating dashes.

func (*Uuid) String

func (u *Uuid) String() string

Returns a string constructed from the uuid struct. Implements stringer.

Jump to

Keyboard shortcuts

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