Documentation ¶
Overview ¶
Package hn provides functions to fetch data from hacker news.
Index ¶
Constants ¶
View Source
const ( // TopStoriesURL fetches top stories from HN TopStoriesURL = "https://hacker-news.firebaseio.com/v0/topstories.json" // StoryLinkURL fetches a story given its id StoryLinkURL = "https://hacker-news.firebaseio.com/v0/item/%d.json" // PostLinkURL is the HN URL for given id PostLinkURL = "https://news.ycombinator.com/item?id=%d" )
Variables ¶
This section is empty.
Functions ¶
func FetchHNStoriesOf ¶
FetchHNStoriesOf fetches itsm from given ids
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.