uuid

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 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 GormUUID

type GormUUID uuid.UUID

GormUUID uuid as binary(16) datatype

func StringToGormUUID

func StringToGormUUID(s string) (GormUUID, error)

StringToGormUUID

func (*GormUUID) GormDataType

func (u *GormUUID) GormDataType() string

GormDataType sets type to binary(16)

func (*GormUUID) MarshalJSON

func (u *GormUUID) MarshalJSON() ([]byte, error)

func (*GormUUID) Scan

func (u *GormUUID) Scan(value interface{}) error

Scan how data are received from DB

func (*GormUUID) String

func (u *GormUUID) String() string

String representation of Binary16

func (*GormUUID) UnmarshalJSON

func (u *GormUUID) UnmarshalJSON(by []byte) error

func (*GormUUID) Value

func (u *GormUUID) Value() (driver.Value, error)

Value how data are save into DB

Jump to

Keyboard shortcuts

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