3 ms·
One could use build tags to provide alternative implementations over a concrete type, I suppose. But like with everything in life, there is no right solution.
by randomdata 2y ago
One could use build tags to provide alternative implementations over a concrete type, I suppose.
But like with everything in life, there is no right solution. Just different tradeoffs. If interfaces best align with the trades you are willing to make, go for it.