Documentation
¶
Index ¶
- Constants
- type UnixTime
- func (t UnixTime) Date() time.Time
- func (t UnixTime) MarshalJSON() ([]byte, error)
- func (t UnixTime) RawVal() int64
- func (t *UnixTime) Scan(v interface{}) error
- func (t UnixTime) String() string
- func (t *UnixTime) UnmarshalJSON(data []byte) (err error)
- func (t UnixTime) Value() (driver.Value, error)
Constants ¶
View Source
const ( DateTimeFormatter = "2006-01-02 15:04:05" DateFormatter = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnixTime ¶
type UnixTime int64
UnixTime is alias type for int64
func (UnixTime) MarshalJSON ¶
MarshalJSON implements json marshal interface.
func (*UnixTime) UnmarshalJSON ¶
UnmarshalJSON implements json unmarshal interface.
Click to show internal directories.
Click to hide internal directories.