ralgozino / hnclient

A toy project to play with golang. Handle with care.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hnclient

hnclient is a Hacker News CLI client. It's a toy project to practice writing golang and using gorutines.

Use at your own risk.

Usage

$ ./hn help

hn is a Hacker News CLI client.
You can get the N top, best or new stories from the orange site
right in your console.

If no arguments are passed, you'll get the top 10 stories by default.

Usage:
  hn [flags]
  hn [command]

Available Commands:
  best        get best N stories
  help        Help about any command
  new         get the N newest stories
  top         get top N stories

Flags:
  -h, --help   help for hn

Use "hn [command] --help" for more information about a command.

Sample output

$ ./hn
πŸ“ Some thoughts on the $660k copy of Super Mario Bros
πŸ—£  story by ecliptik | 27 comments | ⭐️ 50
πŸ”— http://famicomblog.blogspot.com/2021/04/air-raid-has-some-thoughts-on-660000.html
πŸ’¬ https://news.ycombinator.com/item?id=26940590

πŸ“ Google have declared Droidscript is malware
πŸ—£  story by croes | 252 comments | ⭐️ 460
πŸ”— https://groups.google.com/g/androidscript/c/Mbh5TZ6YYnA/m/GflwflqaDAAJ
πŸ’¬ https://news.ycombinator.com/item?id=26956077

πŸ“ Arm Announces Neoverse V1, N2 Platforms and CPUs, CMN-700 Mesh
πŸ—£  story by timthorn | 47 comments | ⭐️ 124
πŸ”— https://www.anandtech.com/show/16640/arm-announces-neoverse-v1-n2-platforms-cpus-cmn700-mesh
πŸ’¬ https://news.ycombinator.com/item?id=26955451

πŸ“ Swimlanes.io – generated editable sequence diagrams
πŸ—£  story by smusamashah | 23 comments | ⭐️ 116
πŸ”— https://swimlanes.io/
πŸ’¬ https://news.ycombinator.com/item?id=26956728

πŸ“ I forgot about print style sheets (2016)
πŸ—£  story by pcr910303 | 8 comments | ⭐️ 72
πŸ”— https://www.matuzo.at/blog/i-totally-forgot-about-print-style-sheets/
πŸ’¬ https://news.ycombinator.com/item?id=26956980

πŸ“ SixtyFPS v0.0.6 (GUI Toolkit in Rust): Now with IDE Support
πŸ—£  story by adamnemecek | 10 comments | ⭐️ 58
πŸ”— https://sixtyfps.io/blog/v0.0.6-now-with-ide-support
πŸ’¬ https://news.ycombinator.com/item?id=26958154

πŸ“ The Muse (YC W12) Is Hiring Two Designers Come Join Us
πŸ—£  job by KMinshew | 0 comments | ⭐️ 1
πŸ”— https://www.themuse.com/jobs/themuse/senior-product-designer
πŸ’¬ https://news.ycombinator.com/item?id=26958572

πŸ“ Neutron stars may be bigger than expected, measurement of lead nucleus suggests
πŸ—£  story by furcyd | 6 comments | ⭐️ 50
πŸ”— https://www.sciencemag.org/news/2021/04/neutron-stars-may-be-bigger-expected-measurement-lead-nucleus-suggests
πŸ’¬ https://news.ycombinator.com/item?id=26957355

πŸ“ My Current HTML Boilerplate
πŸ—£  story by adrian_mrd | 214 comments | ⭐️ 810
πŸ”— https://www.matuzo.at/blog/html-boilerplate/
πŸ’¬ https://news.ycombinator.com/item?id=26952557

πŸ“ OpenFlights – airport and airline data
πŸ—£  story by cyberlab | 14 comments | ⭐️ 78
πŸ”— https://openflights.org/data.html
πŸ’¬ https://news.ycombinator.com/item?id=26956271

$ ./hn new 5

πŸ“ India Is What Happens When Rich People Do Nothing
πŸ—£  story by pmoriarty | 0 comments | ⭐️ 1
πŸ”— https://www.theatlantic.com/international/archive/2021/04/india-covid19-moral-failure/618702/
πŸ’¬ https://news.ycombinator.com/item?id=26959112

πŸ“ Webmention Analytics
πŸ—£  story by brianzelip | 0 comments | ⭐️ 1
πŸ”— https://mxb.dev/blog/webmention-analytics/
πŸ’¬ https://news.ycombinator.com/item?id=26959161

πŸ“ Robot Uses AI to Kill 100k Weeds per Hour
πŸ—£  story by deedub | 0 comments | ⭐️ 1
πŸ”— https://interestingengineering.com/new-farming-robot-uses-ai-to-kill-100000-weeds-per-hour
πŸ’¬ https://news.ycombinator.com/item?id=26959132

πŸ“ 9 factors to keep in mind when selecting an optical payload for a satellite
πŸ—£  story by kartikkumar | 0 comments | ⭐️ 1
πŸ”— https://blog.satsearch.co/2021-04-27-spotlight-9-factors-to-keep-in-mind-when-selecting-an-optical-payload
πŸ’¬ https://news.ycombinator.com/item?id=26959162

πŸ“ CC Search to Join Wordpress.org
πŸ—£  story by kgodey | 0 comments | ⭐️ 1
πŸ”— https://ma.tt/2021/04/cc-search-to-join-wordpress-org/
πŸ’¬ https://news.ycombinator.com/item?id=26959160

About

A toy project to play with golang. Handle with care.

License:Apache License 2.0


Languages

Language:Go 100.0%