/hackernews

Simple Hacker News client for Go

Primary LanguageGoMIT LicenseMIT

hackernews

GoDoc

Simple Hacker News client for Go. Currently only supports reading from Hacker News.

Examples

List stories from the front page

hn := hackernews.New()
ctx := context.Background()
stories, err := hn.FrontPage(ctx)

Get the newest stories

hn := hackernews.New()
ctx := context.Background()
stories, err := hn.Newest(ctx)

Find a story and its comments

hn := hackernews.New()
ctx := context.Background()
story, err := hn.Find(ctx, 1)

Install

go get -u github.com/matthewmueller/hackernews

Authors

License

MIT