Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyPrint ¶
func PrettyPrint(i interface{}) string
PrettyPrint to print struct in a readable way
func PrintResult ¶
func PrintResult(news []HackerNew)
PrintResult is just some group by date formatting, decending order
Types ¶
type HackerNew ¶
HackerNew as individual title
func GetHackerNews ¶
GetHackerNews gets the last two days news from hackernews
type HackerNews ¶
type HackerNews struct { Title []string `goquery:"h2.home-title"` Date []string `goquery:"div.item-label"` Link []string `goquery:"a.story-link,[href]"` }
HackerNews as a struct to capture data from hackernews.com
type RedditTopic ¶
func Reddit ¶
func Reddit(subreddit string) ([]RedditTopic, error)
Reddit reads the rss from the subreddit
Click to show internal directories.
Click to hide internal directories.