Blogs

Create Homebrew Taps for …

I started a new job in July 2022. While the developer experience is great, one of the things that I missed at my new job was a CLI to rule them all (like I had at my old job). I thought of building an easily extensible CLI tool which I did with go and cobra. To handle distribution to the engineers, …

Publish Go Packages with …

Goreleaser is awesome. It’s a simple tool that allows you to release your go packages. Recently, my team and I used it with a company wide CLI tool that we built. In this tutorial, we’ll use goreleaser to automate the release of a simple go package. Installation On macOS, to install …

Load CSV files in Go

This is a very easy way to open a CSV file line by line in Go. Suppose we have a CSV file pops.csv that looks like this City Population Lagos 21000000 Tokyo 37400000 Delhi 28500000 Rio de Janeiro 13300000 To read the file line by line, package main import ( "encoding/csv" "fmt" …