Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalDate ¶
LocalDate 2006-01-02
func (LocalDate) MarshalJSON ¶
func (*LocalDate) UnmarshalJSON ¶
type LocalTime ¶
LocalTime 2006-01-02 15:04:05
func (LocalTime) MarshalJSON ¶
func (*LocalTime) UnmarshalJSON ¶
type PlainDate ¶
PlainDate 20060102
func (PlainDate) MarshalJSON ¶
func (*PlainDate) UnmarshalJSON ¶
type PlainTime ¶
PlainTime 20060102150405999 2006/01/02 15:04:05.999
func (PlainTime) MarshalJSON ¶
func (*PlainTime) UnmarshalJSON ¶
type PrettyDate ¶
PrettyDate 2006/01/02
func (PrettyDate) Local ¶
func (t PrettyDate) Local() time.Time
func (PrettyDate) MarshalJSON ¶
func (t PrettyDate) MarshalJSON() ([]byte, error)
func (*PrettyDate) Scan ¶
func (t *PrettyDate) Scan(v any) error
Scan 读取数据库时会调用 valueof time.Time 注意是指针类型 method
func (PrettyDate) String ¶
func (t PrettyDate) String() string
func (*PrettyDate) UnmarshalJSON ¶
func (t *PrettyDate) UnmarshalJSON(data []byte) error
type PrettyTime ¶
PrettyTime 2006/01/02 15:04:05
func (PrettyTime) Local ¶
func (t PrettyTime) Local() time.Time
func (PrettyTime) MarshalJSON ¶
func (t PrettyTime) MarshalJSON() ([]byte, error)
func (*PrettyTime) Scan ¶
func (t *PrettyTime) Scan(v any) error
Scan 读取数据库时会调用 valueof time.Time 注意是指针类型 method
func (PrettyTime) String ¶
func (t PrettyTime) String() string
func (*PrettyTime) UnmarshalJSON ¶
func (t *PrettyTime) UnmarshalJSON(data []byte) error
type Timestamp ¶
Timestamp Unix时间戳
func (Timestamp) MarshalJSON ¶
func (*Timestamp) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.