Didi Tech
May 9, 2019 · Fundamentals
Deep Dive into Go Interfaces: Duck Typing, Receivers, Interface Internals, and Polymorphism
The article thoroughly examines Go’s interface system, explaining static duck typing, the differences between value and pointer receivers, the internal iface/eface structures, how interfaces are constructed and converted, compiler implementation checks, type assertions, runtime polymorphism, and contrasts these mechanisms with C++ abstract‑class interfaces.
GoType Assertionduck typing
0 likes · 39 min read