uuid

package
v0.0.0-...-e46c3b8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInvalStr

type ErrInvalStr struct {
	Str string
	Err error
}

ErrInvalStr is error for invalid UUID strings.

func (ErrInvalStr) Error

func (err ErrInvalStr) Error() string

type ErrInvalType

type ErrInvalType struct {
	// contains filtered or unexported fields
}

ErrInvalType is used for reporting that value of wrong type is beeing scaned.

func (ErrInvalType) Error

func (err ErrInvalType) Error() string

type ErrNil

type ErrNil struct{}

ErrNil is used for reporting nil value beein scanned.

func (ErrNil) Error

func (ErrNil) Error() string

type UUID

type UUID struct {
	impl.UUID
}

UUID wraps UUID implementation for using as value for MySQL column.

func Parse

func Parse(s string) (UUID, error)

Parse validates and parses UUID strings.

func Wrap

func Wrap(id impl.UUID) UUID

Wrap wraps a UUID

func (*UUID) Scan

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

Scan implements the sql.Scanner interface.

func (UUID) Value

func (id 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