3 ms·
Isn't Any essentially: type Any interface{} ?
by takeda 5y ago
Isn't Any essentially:
type Any interface{}
?
- deleted 5y ago[deleted]
- erdaniels 5y agoIt's a type alias so it's type any = interface{} That means they're interchangeable compared to defining a new type.
- Laremere 5y agoClose, it's: type Any = interface{} That is, it's an alias and casting is not necessary.
- throwaway894345 5y agoI'm pretty sure it's an alias, so: `type any = interface{}`. `type any interface{}` would declare a new type, while an alias is exactly another name for the same type.