minifetch

command module
v0.0.0-...-16f27dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 7 Imported by: 0

README

minifetch

CI Pipeline

A minimal, cross-platform system information fetching tool written in Go. It relies on native syscalls and standard library functions where possible, falling back to shell parsing only when necessary (e.g., CPU model names).

Screenshot

Features

  • Cross-Platform: Supports Linux, macOS, and Windows.
  • Zero Dependencies: Compiles to a single static binary.
  • Information Fetched:
    • User & Hostname
    • OS & Architecture
    • Shell & Desktop Environment
    • CPU Model (Parsed from /proc/cpuinfo, sysctl, or PowerShell)
    • Memory Usage (Used / Total)
    • Disk Usage (Home directory specific)
    • Local IP Address (via UDP dial trick)

Installation & Build

You need Go installed on your system.

git clone [https://github.com/ayzabar/minifetch.git](https://github.com/ayzabar/minifetch.git)
cd minifetch
go build -o minifetch main.go
./minifetch<img width="1026" height="850" alt="image" src="https://github.com/user-attachments/assets/9cc8c1c3-c3a4-4d39-9b6b-af3939bfd292" />

Cross-Compilation

To build a Windows executable from Linux or macOS:

GOOS=windows GOARCH=amd64 go build -o minifetch.exe main.go

License

MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL