3 ms·
Interfaces are not free in Go
- euroderf 4y agoSo, a tradeoff between running time and development time. Sort of like the basic Go idea that a little code duplication is better than proliferating dependencies... and, similarly: Don't create an interface unless you think it will pay off in developer time.