Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 913 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 913 Bytes

HackerNews Go

Build Status

Test Status

A HackerNews client writtent in Go


Usage

To get the top stories

hnctl get --count 4

To get most recent (new) stories

hnctl get --new
  • The default number of stories for both subcommands is 10. You can change that by using the --count flag
  • If you do not build the executable then you can simply do go run main.go get--count 30
  • Note that --top will be set by default if no flag is set

Output

When running a command you will get 2 columns for Title and URL in your terminal: Image of HN GO output