4 ms·
Maybe am missing some nuance in the above comment, but can't the above be achieved in Go with an interface: type Animal interface { MakeNoise() } Link to a
by hannofcart 3y ago
Maybe am missing some nuance in the above comment, but can't the above be achieved in Go with an interface:
type Animal interface {
MakeNoise()
}
Link to an implementation of scenario: https://go.dev/play/p/bSAFr9i4ex3 https://go.dev/play/p/bSAFr9i4ex3
- ThePhysicist 3y agoSee above, interfaces won't solve that problem unfortunately.