uuid

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package uuid is a utility package to standardize and abstract away how UUIDs are generated and used.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a *UUID, b *UUID) bool

Equal returns true if both argument uuids contain the same value.

Types

type UUID

type UUID struct {
	gid.UUID
}

UUID is a wrapper around go.uuid.UUID

func FromString

func FromString(str string) (*UUID, error)

FromString reads a UUID from a string

func New

func New() *UUID

New generates a new UUID.

func (*UUID) ToString

func (u *UUID) ToString() string

ToString converts UUID into string

Jump to

Keyboard shortcuts

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