types

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateOnly

type DateOnly struct {
	Time *time.Time
}

func (*DateOnly) MarshalJSON

func (d *DateOnly) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface and will be called automatically

func (*DateOnly) Scan

func (d *DateOnly) Scan(value interface{}) error

Scan implements the sql.Scanner interface and will be called automatically

func (*DateOnly) UnmarshalJSON

func (d *DateOnly) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Marshaler interface and will be called automatically

func (*DateOnly) Value

func (d *DateOnly) Value() (driver.Value, error)

Value implements the driver.Value interface and will be called automatically

type TimeOnly

type TimeOnly struct {
	Time *time.Time
}

func (*TimeOnly) MarshalJSON

func (t *TimeOnly) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface and will be called automatically

func (*TimeOnly) Scan

func (t *TimeOnly) Scan(value interface{}) error

Scan implements the sql.Scanner interface and will be called automatically

func (*TimeOnly) UnmarshalJSON

func (t *TimeOnly) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Marshaler interface and will be called automatically

func (*TimeOnly) Value

func (t *TimeOnly) Value() (driver.Value, error)

Value implements the driver.Value interface and will be called automatically

Jump to

Keyboard shortcuts

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