concrete type

An actual type with its own data, such as string or a Target struct, as opposed to an interface that only describes behaviour.

In more detail

A value stored in an interface still has a concrete type underneath, which a type assertion or type switch can recover. A common guideline is to accept interfaces as parameters but return concrete types.

Related terms

Taught in

References