All Posts

A Dive Into the `fmt` Package

We usually use the fmt package without giving it much thought. A fmt.Printf here, a fmt.Sprintf there and on we go. However, if you’ll take a closer look, you’ll be able to get much more out of it.

Go and WebAssembly: running Go programs in your browser

For a long time, Javascript was the lingua franca amongst web developers. If you wanted to write a stable, mature web app, writing in javascript was pretty much the only way to go.

On the tension between generic code and special cases

The io.Reader and io.Writer interfaces appear in practically all Go programs, and represent the fundamental building blocks for dealing with streams of data. An important feature of Go is that the abstractions around objects such as sockets, files, or in-memory buffers are all expressed in terms of these interfaces.

How to Send and Receive SMS: Implementing a GSM Protocol in Go

When developers add an SMS component in their app either for verification or notification purposes, they usually do it via RESTful API like the ones provided by Twilio.

Golang and local datastores - fast and flexible data storage

Local datastores may not be a fit if you are building a web application that may have more than a single instance and a somewhat rich data schema.

Best Practices for Using Mage To Build Your Project

On my team at Mattel, we have a magefile for every Go project (and we have several Go projects). Our use of mage has grown with the team and the projects, and it has been a big help keeping our dev practices uniform and shareable.