Socket
Socket
Sign inDemoInstall

github.com/SatishTalim/redditnews

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/SatishTalim/redditnews

redditnews package implements a basic client for the Reddit API.


Version published

Readme

Source

An Internal Project: redditnews

baby-gopher These projects specifications were given to a "Baby Gopher".

"I am keen to be abreast with what's happening in the Golang world. To that end, we will write a command-line program (redditnews.go) that fetches and displays the latest headlines from the golang page on Reddit.

The program will:

  • make an HTTP request to the Reddit API.
  • decode the JSON response into a Go data structure, and
  • display each link's author, score, URL and title.

We will then be building a bare-bones News Reader package (redditnews) that gives us the latest news and headlines from the Golang Sub-Reddit, using Reddit's API.

The "Baby Gopher" built this package and documented his progress so that other "Baby Gophers" could find it easy to understand the mechanics of writing a package in Go. He/she would now be able to build their own Go packages.

FAQs

Last updated on 28 Dec 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc