hackernews

Simple Hacker News client for Go

MIT License

Stars
7

hackernews

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

Package Rankings
Top 7.98% on Proxy.golang.org