types

package
v0.1.0-develop....-14b4cf9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryUUID

type BinaryUUID uuid.UUID

BinaryUUID -> binary uuid wrapper over uuid.UUID

func ParseUUID

func ParseUUID(id string) BinaryUUID

ParseUUID -> parses string uuid to binary uuid

func (BinaryUUID) GormDataType

func (BinaryUUID) GormDataType() string

GormDataType -> sql data type for gorm

func (BinaryUUID) MarshalJSON

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

MarshalJSON -> convert to json string

func (*BinaryUUID) Scan

func (b *BinaryUUID) Scan(value interface{}) error

Scan -> scan value into BinaryUUID

func (BinaryUUID) String

func (b BinaryUUID) String() string

func (*BinaryUUID) UnmarshalJSON

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

UnmarshalJSON -> convert from json string

func (BinaryUUID) Value

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