Documentation ¶ Index ¶ type TimeStamp func Time(t time.Time) TimeStamp func (t TimeStamp) MarshalJSON() ([]byte, error) func (t *TimeStamp) Scan(src interface{}) (err error) func (t TimeStamp) Time() time.Time func (t *TimeStamp) UnmarshalJSON(data []byte) error func (t TimeStamp) Value() (driver.Value, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type TimeStamp ¶ type TimeStamp int64 毫秒 func Time ¶ func Time(t time.Time) TimeStamp func (TimeStamp) MarshalJSON ¶ func (t TimeStamp) MarshalJSON() ([]byte, error) func (*TimeStamp) Scan ¶ func (t *TimeStamp) Scan(src interface{}) (err error) Scan scan time. func (TimeStamp) Time ¶ func (t TimeStamp) Time() time.Time Time get time. func (*TimeStamp) UnmarshalJSON ¶ func (t *TimeStamp) UnmarshalJSON(data []byte) error func (TimeStamp) Value ¶ func (t TimeStamp) Value() (driver.Value, error) Value get time value. Source Files ¶ View all Source files timestamp.go Click to show internal directories. Click to hide internal directories.