3 ms·
`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 a
by 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.