🇨🇦🇧🇷

Books

Powerful Command-Line Applications in Go

Build Fast and Maintainable Tools

Cover: Powerful Command-Line Applications in Go

By Ricardo Gerardi · The Pragmatic Bookshelf · December 2021 · 508 pages · ISBN 9781680506969

Write your own fast, reliable, and cross-platform command-line tools with Go. Automate tasks, analyze data, parse logs, talk to network services, using Go’s rich standard library, concurrency primitives, testing, and benchmarks.

You’ll build tools that interact via flags and environment variables, handle files and filesystems, control external processes, use Cobra for subcommands, talk to REST APIs and SQL databases, build interactive terminal UIs, and distribute cross-platform binaries and containers.

What you need: Go 1.14 or higher, an internet connection, and a text editor.


Automate Your Home Using Go

Build a Personal Data Center with Raspberry Pi, Docker, Prometheus, and Grafana

Cover: Automate Your Home Using Go

By Ricardo Gerardi and Mike Riley · The Pragmatic Bookshelf · August 2024 · 160 pages · ISBN 9798888650509

Take control of your home and your data with Go. Using inexpensive Raspberry Pi hardware and open-source Go-based tools like Prometheus and Grafana, build a personal data center that rivals expensive closed commercial alternatives.

Step-by-step projects: a temperature monitor with alerts and dashboards, lights that reflect outdoor weather, a networked motion detector, and a bird-feeder camera that posts wildlife captures to Discord: blueprints you can adapt to your own projects. No soldering required.

What you need: Familiarity with Go, working knowledge of Linux, a Raspberry Pi 3+ (plus Pi Pico W for some projects), and a few inexpensive sensors. A Philips Hue system is needed for the weather-light project.


Available in PDF, epub, mobi, and paperback. Please support indie bookstores.