4 ms·
Why does the syntax specifically use `interface{}` instead of just `interface`? `{}` isn't use for any other types
by stevebmark 5y ago
Why does the syntax specifically use `interface{}` instead of just `interface`? `{}` isn't use for any other types
- ibraheemdev 5y ago`interface` isn't a type, it's the keyword used to declare an interface: type Foo interface { Foo() int } `interface{}` is simply a shortform for an interface with no methods.