Errgroup

, Categories: Tech / Go .

The errgroup package provides a way to run a group of goroutines. It’s similar to the well known WaitGroup but allows for easy and correct cancellation.

Read more →

Adding a Go interface to help with unit testing

, Categories: Tech / Go .

Go interfaces apply automatically to any types that implement all the methods. This means you can define your interfaces near the code that uses them. They also provide an easy way of stubbing out code for use in unit tests. Here’s an example.

Read more →

Go and vim

, Categories: Go / Vim / Tech .

The default vim go language syntax file uses a tabstop of 8, which is a bit excessive.

Read more →

Resize images on the command line on Mac OS X

, Categories: Mac / Tech .

My new camera is very nice, but the default file size is too large for my gallery.

Read more →

Using signal.alarm() for a timeout

, Categories: Python / Tech .

The Python signal module let’s you setup Unix signals, including SIGALRM.

Read more →
Previous page Next page