Osvaldo Santana Neto

39%
Flag icon
So what does the type interface{}, which has no methods at all, tell us about the concrete types that satisfy it? That’s right: nothing. This may seem useless, but in fact the type interface{}, which is called the empty interface type, is indispensable. Because the empty interface type places no demands on the types that satisfy it, we can assign any value to the empty interface.
The Go Programming Language
Rate this book
Clear rating
Open Preview