Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Post ¶
type Post struct { ID int `json:"id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` File PostFile `json:"file"` Preview PostPreview `json:"preview"` Sample PostSample `json:"sample"` Score PostScore `json:"score"` Tags PostTags `json:"tags"` LockedTags []string `json:"locked_tags"` ChangeSeq int `json:"change_seq"` Flags PostFlags `json:"flags"` Rating string `json:"rating"` FavCount int `json:"fav_count"` Sources []string `json:"sources"` Pools []int `json:"pools"` Relationships PostRelationships `json:"relationships"` ApproverID int `json:"approver_id"` UploaderID int `json:"uploader_id"` Description string `json:"description"` CommentCount int `json:"comment_count"` IsFavorited bool `json:"is_favorited"` }
type PostPreview ¶
type PostRelationships ¶
type PostSample ¶
type PostTags ¶
type SerializedDate ¶
type SerializedDate struct { JSONClass string `json:"json_class"` Seconds int64 `json:"s"` Nanoseconds int64 `json:"n"` }
SerializedDate represents a serialized date passed via JSON
func (*SerializedDate) Time ¶
func (date *SerializedDate) Time() time.Time
Time returns a time.Time object representing the SerializedDate
Click to show internal directories.
Click to hide internal directories.