zero

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	time.Time
}

func NewDate

func NewDate(v interface{}) (*Date, error)

NewNullTime Создание Date переменной

func (Date) MarshalJSON

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

func (*Date) Scan

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

Scan implements the Scanner interface for NullTime

func (*Date) UnmarshalJSON

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

func (Date) Value

func (d Date) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Time

type Time struct {
	time.Time
}

func NewTime

func NewTime(v interface{}) (*Time, error)

NewNullTime Создание Time переменной

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (*Time) Scan

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

Scan implements the Scanner interface for NullTime

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) (err error)

func (Time) Value

func (t Time) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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