Despite its growing popularity as an open-source programming language, it’s still possible to unearth a few juicy bugs in Go. That’s what happened when Benoit Artuso, Software Architect at Scality, and his team were at work on the development and benchmarking our software. Here’s how they exposed the bug and takeaways from the sleuthing.
To start from the beginning, in our code we have to call another service through HTTP. This is what our pseudo code looks like:
result = http.Put(destination, dataBuffer)
dataBuffer = “some data&”
result = call_service(dataBuffer)
This is clean and simple enough.