Curriculum Interfaces & generics
module 4 of 7
Interfaces & generics
Structural typing in Go's shape — implicit satisfaction with no implements keyword. Then generics on top: familiar from TS, mostly syntax to learn.
themes
4.1
Interfaces
interface { Foo() }. A type implements an interface by having the
right methods. There is no implements keyword. Satisfaction is
implicit: if the methods match, the type sa…