uuid

package
v0.0.0-...-a0b01fe Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID [16]byte

UUID This is needed to build with gopherjs

func FromString

func FromString(input string) (UUID, error)

FromString Wrapper around the real FromString

func NewV4

func NewV4() UUID

NewV4 Wrapper over the real NewV4 method

func (UUID) MarshalBinary

func (u UUID) MarshalBinary() ([]byte, error)

MarshalBinary Wrapper over the real MarshalBinary method

func (UUID) MarshalText

func (u UUID) MarshalText() (text []byte, err error)

MarshalText Wrapper over the real MarshalText method

func (*UUID) Scan

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

Scan implements the sql.Scanner interface. A 16-byte slice is handled by UnmarshalBinary, while a longer byte slice or a string is handled by UnmarshalText.

func (UUID) String

func (u UUID) String() string

String Wrapper over the real String method

func (*UUID) UnmarshalBinary

func (u *UUID) UnmarshalBinary(data []byte) error

UnmarshalBinary Wrapper over the real UnmarshalBinary method

func (*UUID) UnmarshalText

func (u *UUID) UnmarshalText(text []byte) error

UnmarshalText Wrapper over the real UnmarshalText method

func (UUID) Value

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

Value implements the driver.Valuer interface.

Jump to

Keyboard shortcuts

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