Two Elegant Use Cases for Go Build Tags
I won’t explain what Go build tags are, or conditional compilation in general. There are already many good resources that cover those topics well. Instead, I want to highlight two use cases that I’ve rarely seen discussed explicitly. In both cases, build tags proved extremely handy, and the resulting solutions turned out quite elegant, at least to my taste. Providing a Unified…