Sometimes Boring Is Better
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...
In Flow-Based Programming, programs are modeled as data flowing between independent processing units. Who would not think of channels and goroutines as a natural analogy?
Updated on February 28th, 2017 Prelude This post is part of a series of posts designed to make you think about your own design philosophy on different topics. If you haven’t read these posts yet, please do so first: Develop Your Design Philosophy Design Philosophy On Packaging...
Usually when we share a runnable Go code we do: copy code, open Go Playground, paste code, click Share.
Prelude This post is part of a series of posts designed to make you think about your own design philosophy on different topics. If you haven’t read this post yet, please do so first: Develop Your Design Philosophy After this post, read this next one: Package Oriented Design Int...
Go team has released new version on February 16. You can get it from the download page. To celebrate the release, Go User Groups around the world are holding release parties this week.