interface value

A value held in an interface variable, which carries two parts: the concrete type it really is and the value itself.

In more detail

The interface's static type decides which methods you can call directly; the dynamic type is what is actually inside. An interface is nil only when both parts are empty. Type assertions and type switches read the dynamic type.

Related terms

Taught in

References