Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct { XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"` Title string `xml:"title"` Subtitle string `xml:"subtitle"` Link FeedLink `xml:"link"` Updated time.Time `xml:"updated"` Author FeedAuthor `xml:"author"` ID string `xml:"id"` Entries []FeedEntry `xml:"entry"` }
A Feed represents the singular of feed.
type FeedAuthor ¶
type FeedAuthor struct {
Name string `xml:"name"`
}
An FeedAuthor represents the singluar of author.
type FeedContent ¶
A FeedContent represents the singular of content.
type FeedEntry ¶
type FeedEntry struct { Title string `xml:"title"` Link FeedLink `xml:"link"` ID string `xml:"id"` Updated time.Time `xml:"updated"` Published time.Time `xml:"published"` Author FeedAuthor `xml:"author"` Content FeedContent `xml:"content"` }
An FeedEntry represents the singular of entry.
type FeedLink ¶
type FeedLink struct {
Href string `xml:"href,attr"`
}
A FeedLink represents the singular of link.
type Meta ¶
type Meta struct { Title string Canonical string Description string OGTitle string OGDescription string OGURL string OGType string OGImage string OGSiteName string OGLocale string TwitterCard string TwitterSite string NoIndex bool }
A Meta represents the singular of meta.
type Pagination ¶
type Pagination struct { PaginationCount int `json:"pagination_count"` PaginationPageCount []struct{} `json:"pagination_pagecount"` PaginationPage int `json:"pagination_page"` PaginationLimit int `json:"pagination_limit"` }
A Pagination represents the singular of pagination.
type Post ¶
type Post struct { ID int `json:"id"` Admin Admin `json:"admin"` Category Category `json:"category"` Tags Tags `json:"tags"` Title string `json:"title"` MDBody string `json:"md_body"` HTMLBody string `json:"html_body"` Status string `json:"status"` Comments Comments `json:"comments"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
A Post represents the singular of post.
Click to show internal directories.
Click to hide internal directories.