uuid

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

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

swagger:strfmt uuid4 UUID can hold any valid UUID, regardless of version

var Nil UUID

A zeroed out UUID

func Must

func Must(uuid UUID, err error) UUID

func NewRandom

func NewRandom() UUID

func Parse

func Parse(s string) (UUID, error)

func (UUID) MarshalJSON

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

func (*UUID) Scan

func (uuid *UUID) Scan(value interface{}) error

Scan - Implement the database/sql scanner interface

func (UUID) String

func (uuid UUID) String() string

func (*UUID) UnmarshalJSON

func (uuid *UUID) UnmarshalJSON(in []byte) error

func (UUID) Value

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

Value - Implementation of valuer for database/sql

Jump to

Keyboard shortcuts

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