Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HNPageURLs = map[PageType]string{ FrontPage: hnBaseURL, NewPage: hnBaseURL + "/newest", PastPage: hnBaseURL + "/front", ActivePage: hnBaseURL + "/active", JobsPage: hnBaseURL + "/jobs", }
HNPage maps page types to their respective URLs
Functions ¶
This section is empty.
Types ¶
type HNItem ¶
type HNItem struct {
ID int `json:"id"`
Title string `json:"title"`
URL string `json:"url"`
Text string `json:"text"`
By string `json:"by"`
Score int `json:"score"`
Time int64 `json:"time"`
Type string `json:"type"`
Kids []int `json:"kids"`
Dead bool `json:"dead"`
Deleted bool `json:"deleted"`
Descendants int `json:"descendants"`
}
HNItem represents a Hacker News API item
Click to show internal directories.
Click to hide internal directories.