uuid

package module
v0.0.0-...-4e82cb9 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

uuid GoDoc

This is just a sql BINARY(16) compatible type 4 UUID. Currently it is just a new type definition delegating to google/uuid but introduces BINARY(16) sql Scanner support.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID uuid.UUID

func MustParse

func MustParse(str string) UUID

func New

func New() UUID

func Parse

func Parse(str string) (UUID, error)

func (UUID) MarshalText

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

func (*UUID) Scan

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

func (UUID) String

func (u UUID) String() string

func (*UUID) UnmarshalText

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

UnmarshalText implements encoding.TextUnmarshaler.

func (UUID) Value

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

Jump to

Keyboard shortcuts

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