Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TimeSchemaToDatetime = "2006-01-02 15:04:05" TimeSchemaToDate = "2006-01-02" TimeSchemaToTime = "15:04:05" )
Functions ¶
This section is empty.
Types ¶
type CustomTime ¶
func (*CustomTime) MarshalJSON ¶
func (ct *CustomTime) MarshalJSON() ([]byte, error)
序列化时的回调:json.Marshal
func (*CustomTime) UnmarshalJSON ¶
func (ct *CustomTime) UnmarshalJSON(b []byte) error
反序列化时的回调:json.Unmarshal
Click to show internal directories.
Click to hide internal directories.