GopherAcademy Blog

Community Contributed Articles and Tutorials on Go

All Posts

Type safe templating with ego

Go has seen many converts from scripting languages such as Ruby and Python. These newcomers love the type safety, the language simplicity, and the static binaries that Go offers.

Viper: Configuration with Fangs

One of the hardest things to get right when building command line or server applications is user configuration. One look at the many different INI formats or various approaches used in /etc demonstrates that there really isn’t a good and standard approach.

Testing Microservices in Go

This post is about testing microservices and why they should be tested differently from many types of software. Microservices are by their very nature simple and encapsulated behind their api.

Managing Dependencies

Packages, dependencies, versions. This post will explore two tools and how I’ve been using them. Godep as the consumer of third-party packages, and gopkg.in as a library author.

Cobra: A Modern & Refined CLI Commander

Go is the perfect language to develop command line applications. Go has a few advantages that really set it apart from other languages: Single binary Very fast execution time, no interpreter needed Go is awesome!

Simple backoff

Or, taming connection state and thundering herds. There comes a time in the life of many programs when you need to maintain a persistent connection to a server.