hacdias.com · 6d · discuss
Today I want to describe a small bug I uncovered a few years ago at work. I was working on a naming system, akin to DNS, which allowed you to provide a TTL when publishing or updating a name. After some attempts at making the TTL larger, it always remained at 0. The flag wasn’t being honored! At this point, if you’re familiar with Go and read the title, you probably already know where this is going. Let’s start by saying that the CLI tool that received the option value and the library where all the naming magic happened are...