🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/matthewmueller/hackernews

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/matthewmueller/hackernews

v0.7.0
Source
Go
Version published
Created
Source

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

  • Matt Mueller @mattmueller

License

MIT

FAQs

Package last updated on 09 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts