3 ms·
Absolutely. If I see a one method interface, I generally assume that there's a ThingDoerFunc type that implements the interface. Likewise, (ThingDoerImplemeta
by throwaway073123 3y ago
Absolutely. If I see a one method interface, I generally assume that there's a ThingDoerFunc type that implements the interface.
Likewise, (ThingDoerImplemetation{}).DoThing is a valid func reference
Hence I say there's not really a one size fits all, there are a options for different circumstances.