3 ms·
The closest thing is auto-generating code, not using interface{}.
by lima 8y ago
The closest thing is auto-generating code, not using interface{}.
- platinumrad 8y agoYes, but there's still a depressingly large amount of code in the wild that just casts interface{} back and forth.
- lima 8y agoCommon with ORMs. The gorm API is horrible - it's all interfaces. The only reasonable ORM library I've seen is sqlboiler, which uses code generation. https://github.com/volatiletech/sqlboiler https://github.com/volatiletech/sqlboiler
- orblivion 8y agoI don't necessarily mean interface{}. This: type Thing interface { ... } is better, but Thing is still a dynamic type.