Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTopStories ¶
Types ¶
type Item ¶
type Item struct { Id int `json:"id"` Type string `json:"type"` By string `json:"by"` Time int `json:"time"` Title string `json:"title"` Text string `json:"text"` Url string `json:"url"` Score int `json:"score"` Kids []int `json:"kids"` Comments []Item `json:"comments"` }
func GetItemWithComments ¶
type TopMenuResponse ¶
type TopMenuResponse struct {
Items []Item `json:"items"`
}
func GetTopMenuResponse ¶
func GetTopMenuResponse() (TopMenuResponse, error)
Returns the top menu response with the top stories as items with only their IDs
func (TopMenuResponse) EnrichItems ¶
func (t TopMenuResponse) EnrichItems(pageSize, page int)
Click to show internal directories.
Click to hide internal directories.