As a Golang developer I have to clone a lot of packages/tools/etc into $GOPATH/src/github.com. Sometimes I do go get, sometimes it’s necessary to do a combination of mkdir + git clone. So to save my time I wrote a tiny function gh, that actually is the same as cd thatbut al...
Microservices is the new fancy way of doing applications. Yet, most companies still have big and old monoliths in production. In fast evolving software of this size, it’s usual to have lines of code which are never executed in production. Production code coverage reports ca...
If you want to do Flow-Based Programming in Go, there are a couple of frameworks and libraries available. Or you simply do it with pure Go. After all, how difficult can it be?
At ContaAzul, we use the CI infrastructure a lot. We open several pull requests in several projects every day, and we block the merge until the build pass. We consider our master branches are sacred, and we can’t afford too much waiting to change them.
Travis Enterprise
For...
I joined GoTime to talk about the results of the 2016 Go Developer Survey and other interesting Go projects and news.
Listen to the podcast at https://changelog.com/gotime/38
Transcript Erik St. Martin: Welcome back, everybody, to another episode of GoTime. Today’s episode...
At ContaAzul, we have several old pieces of code that are still running in production. We are committed to gradually re-implement them in better ways.
One of those parts was our distributed locking mechanism and me and @t-bonatti were up for the job.
How it was
In normal workload...
Usually integration tests take long time, because they’re doing real requests to real system. And it’s not necessary to run them every time we type go test. For example we have Golang client to work with PayPal SDK, it has some exported functions to send data to PayPa...
In some of my projects we have code that needs to run external executables, and it’s very difficult to test them, especially when your function is based on some kind of stdout parcing. So how to mock these commands in Go? Let’s check how this goal is achieved in os/ex...