uuid

package
v0.0.0-...-a8bc1c0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Bytes = 16
View Source
const Len = 36

Variables

This section is empty.

Functions

func ResemblesUUID

func ResemblesUUID(s string) bool

Determine if an input string resembles a UUID

Types

type UUID

type UUID uuid.UUID

A UUID identifier

var Zero UUID = [16]byte{}

func FromBytes

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

Create an identifier from a slice of bytes

func New

func New() UUID

Encode an identifier from its string representation

func Parse

func Parse(s string) (UUID, error)

Create an identifier from its string representation

func (UUID) MarshalJSON

func (v UUID) MarshalJSON() ([]byte, error)

Marshal

func (UUID) New

func (v UUID) New() interface{}

Create a new identifier. This is implemented to conform to persist.Ident.

func (*UUID) Scan

func (v *UUID) Scan(src interface{}) error

Scan

func (UUID) String

func (v UUID) String() string

Stringer

func (*UUID) UnmarshalJSON

func (v *UUID) UnmarshalJSON(data []byte) error

Marshal

func (UUID) Value

func (v UUID) Value() (driver.Value, error)

Value

Jump to

Keyboard shortcuts

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