Skip to content

JoseThen/hnctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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