uuid

package
v1.8.17 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapstructureDecodeFunc

func MapstructureDecodeFunc() mapstructure.DecodeHookFuncType

Types

type UUID

type UUID string
var Nil UUID = UUID(uuid.Nil.String())

func MustParse

func MustParse(str string) UUID

func New

func New() UUID

func Parse

func Parse(str string) (UUID, error)

func (UUID) IsNil

func (u UUID) IsNil() bool

func (UUID) MarshalBSONValue

func (u UUID) MarshalBSONValue() (bsontype.Type, []byte, error)

func (UUID) MarshalJSON

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

func (UUID) MarshalYAML

func (u UUID) MarshalYAML() (interface{}, error)

func (UUID) String

func (u UUID) String() string

func (*UUID) Unmarshal

func (u *UUID) Unmarshal(v *yaml.Node) error

func (*UUID) UnmarshalBSONValue

func (u *UUID) UnmarshalBSONValue(t bsontype.Type, bs []byte) error

func (*UUID) UnmarshalJSON

func (u *UUID) UnmarshalJSON(bs []byte) error

func (*UUID) UnmarshalYAML

func (u *UUID) UnmarshalYAML(v *yaml.Node) error

Jump to

Keyboard shortcuts

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