collection of articles about programming in Go
Table of Contents
3 ways to iterate
3 different way to implement an iterator in Go: callbacks, channels, struct with
HTTPS for free using Let's Encrypt
In the past supporting HTTPS required paying for SSL certificate. Thanks to
we get free SSL certificates and
library does all the hard work of provisioning them. Learn how to easily add HTTPS support and
redirect HTTP traffic to HTTPS.
Generating good unique ids
Generating unique ids comes up often in web services and distributed systems. This article describes what a good,
unique id is and compares 7 libraries for generating ids.
Accessing GitHub API
offers a rich API for accessing information related to their service. This article will get you
started writing programs that access the API.
Speeding up code with custom allocators
Allocations are often a silent performance killer. This article takes a well-known benchmark (construction of
binary trees) and speeds it up ~4x by optimizing memory allocations.
Extracting files from .7z archives
Go doesn't have a native library for reading 7-Zip. This article describes extracting files from .7z archives
using cmd-line 7z program.