Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeStamp ¶
type TimeStamp int64
TimeStamp is a type which holds a unix timestamp, but becomes a RFC3339 date when parsed to json. This allows us to save the time as a unix timestamp into the database while returning it as an iso date to the api client.
func (*TimeStamp) MarshalJSON ¶
MarshalJSON converts a TimeStamp to a json string
func (*TimeStamp) UnmarshalJSON ¶
UnmarshalJSON converts an iso date string from json to a TimeStamp
Click to show internal directories.
Click to hide internal directories.