core

package
v0.0.0-...-d4d2c18 Latest Latest
Warning

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

Go to latest
Published: May 9, 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 UUID

type UUID uuid.UUID

func NewUUID

func NewUUID() (UUID, error)

func StringToUUID

func StringToUUID(s string) (UUID, error)

StringToUUID -> parse string to UUID

func (UUID) GormDataType

func (id UUID) GormDataType() string

GormDataType -> sets type to binary(16)

func (UUID) MarshalJSON

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

func (*UUID) Scan

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

Scan --> tells GORM how to receive from the database

func (UUID) String

func (id UUID) String() string

String -> String Representation of Binary16

func (*UUID) UnmarshalJSON

func (id *UUID) UnmarshalJSON(by []byte) error

func (UUID) Value

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

Value -> tells GORM how to save into the database

Jump to

Keyboard shortcuts

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