Skip to content
A Golang CLI to browser news from HackerNews and Reddit
Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
gui micro refactors on GUI code Mar 10, 2017
progressbar more tests for more coverage Mar 10, 2017
providers
story
utils
vendor
.gitignore add vendor 😢 Feb 14, 2017
.tests-run.sh add codecov Mar 4, 2017
.travis.yml
LICENSE
README.md
main.go use progressbar interface on client Mar 10, 2017

README.md

Gonews

Build Status Go Report Card codecov

A Golang CLI to browser news from Hacker News and Reddit
Also is a Golang implementation of the awesome pynews-cli.

Installing

Get this project and install via go get -u.

$ go get -u github.com/drgarcia1986/gonews

Or you can download a binary on releases.

Usage example

To get the last 10 new stories just call gonews on command line and press Enter on the news wanted.

You can determine the number max of news to return with parameter --limit and you can also choose between new or top stories with parameter --type.

$ gonews --limit 20 --type top

By default gonews use hackernews as provider, but you can change the provider with parameter --provider, e.g:

$ gonews --provider reddit-golang --type new --limit 10

For more information about usage, use command gonews --help

$ gonews --help
  -limit int
        Number of Stories to get (default 10)
  -provider string
        Stories Provider (hackernews, reddit, reddit-<subreddit>) (default "hackernews")
  -type string
        Stories Type ('new' or 'top') (default "top")

Observation

This is a toy project to help me to pratice Golang, if you can help me with this, getting in touch 😄.

You can’t perform that action at this time.