Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration be used toml unmarshal string time, like 1s, 500ms.
func (Duration) Shrink ¶
Shrink will decrease the duration by comparing with context's timeout duration and return new timeout\context\CancelFunc.
func (*Duration) UnmarshalText ¶
UnmarshalText unmarshal text to duration.
type Hms ¶
type Hms int64
Hms be used to MySql timestamp converting.
func (Hms) MarshalJSON ¶
func (*Hms) UnMarshalJSON ¶
type Mdhm ¶
type Mdhm int64
Mdhm be used to MySql timestamp converting.
func (Mdhm) MarshalJSON ¶
func (*Mdhm) UnMarshalJSON ¶
type Time ¶
type Time int64
Time be used to MySql timestamp converting.
func (Time) MarshalJSON ¶
func (*Time) UnMarshalJSON ¶
type XFloat ¶
type XFloat float64
Time be used to MySql timestamp converting.
func (XFloat) MarshalJSON ¶
func (*XFloat) UnMarshalJSON ¶
type YTime ¶
type YTime int64
YTime be used to MySql timestamp converting.
func (YTime) MarshalJSON ¶
func (*YTime) UnMarshalJSON ¶
type Ymdhi ¶
type Ymdhi int64
Ymdhi be used to MySql timestamp converting.
func (Ymdhi) MarshalJSON ¶
func (*Ymdhi) UnMarshalJSON ¶
type ZTime ¶
type ZTime int64
ZTime be used to MySql timestamp converting.
func (ZTime) MarshalJSON ¶
func (*ZTime) UnMarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.