A simple Command Line Interface (CLI) application built with Go to fetch and display the recent public activity of any GitHub user directly in your terminal.
This project was built to practice interacting with REST APIs, handling JSON data, and creating clean CLI tools without external dependencies.
- Zero External Dependencies: Built entirely using Go's standard library (
net/http,os,encoding/json). - Real-time Activity Fetching: Uses the official GitHub Events API.
- Graceful Error Handling: Provides clear messages for network issues, missing arguments, or non-existent usernames.
Make sure you have Go installed on your machine.
-
Clone the repository:
git clone https://github.com cd github-user-activity -
Build the application:
go build -o github-activity main.go
Run the executable from your terminal and provide a GitHub username as an argument:
./github-activity <username>./github-activity kamranahmedseOutput:
- Pushed to kamranahmedse/developer-roadmap
- Opened an issue in kamranahmedse/developer-roadmap
- Starred kamranahmedse/developer-roadmap