types

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateTime

type DateTime struct {
	time.Time
}

func (*DateTime) MarshalJSON

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

func (*DateTime) Scan

func (u *DateTime) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)

func (*DateTime) UnmarshalJSON

func (u *DateTime) UnmarshalJSON(data []byte) error

func (*DateTime) Value

func (u *DateTime) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)

type Decimal

type Decimal struct {
	decimal.Decimal
}

func NewFromFloat

func NewFromFloat(value float64) Decimal

func (*Decimal) Float64

func (d *Decimal) Float64() float64

func (Decimal) MarshalJSON

func (d Decimal) MarshalJSON() ([]byte, error)

func (*Decimal) UnmarshalJSON

func (d *Decimal) UnmarshalJSON(decimalBytes []byte) error

Jump to

Keyboard shortcuts

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