Interface Dispatch — Itabs, Indirection, Escape, and Typed Nil
Understand the runtime cost of interface method calls — itab, indirect call, argument escape — when devirtualization removes it, and the interface-representation gotcha.
This chapter is part of the paid launch. The preview stays visible so readers can evaluate the exact scope before buying.
Core and Complete. Complete also includes the practical exam and free Go-version updates.
What this chapter teaches
Interfaces are just function pointers; the cost is one indirect call.
escaping interface boxing can allocate; local boxing can be eliminated. Unresolved method dispatch can inhibit optimization, while devirtualization can recover it. (Plus the typed-nil trap: an interface holding a nil pointer is not == nil.)
Unlock Chapter 09 and the rest of the course.
Core unlocks every paid chapter and lab. Complete also includes the practical exam and future Go-version updates.
Full course access with the complete mechanics curriculum.
Best-value launch option with the exam and free Go-version course updates.
No subscription or account required. Access is tied to the email entered at Stripe Checkout and can be restored by email.