uuid

package
v2.0.43 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryUUID added in v2.0.41

type BinaryUUID uuid.UUID

BinaryUUID -> binary uuid wrapper over uuid.UUID

func NewUUID added in v2.0.41

func NewUUID() BinaryUUID

func ParseUUID added in v2.0.41

func ParseUUID(id string) BinaryUUID

ParseUUID -> parses string uuid to binary uuid

func (BinaryUUID) GormDataType added in v2.0.41

func (BinaryUUID) GormDataType() string

GormDataType -> sql data type for gorm

func (BinaryUUID) MarshalJSON added in v2.0.41

func (b BinaryUUID) MarshalJSON() ([]byte, error)

MarshalJSON -> convert to json string

func (*BinaryUUID) Scan added in v2.0.41

func (b *BinaryUUID) Scan(value any) error

Scan -> scan value into BinaryUUID

func (BinaryUUID) String added in v2.0.41

func (b BinaryUUID) String() string

func (*BinaryUUID) UnmarshalJSON added in v2.0.41

func (b *BinaryUUID) UnmarshalJSON(by []byte) error

UnmarshalJSON -> convert from json string

func (BinaryUUID) Value added in v2.0.41

func (b BinaryUUID) Value() (driver.Value, error)

Value -> return BinaryUUID to []bytes binary(16)

Jump to

Keyboard shortcuts

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