Skip to content

Glossary: Data Structures and Algorithms in Go

Type assertion

Also written: .(Item), .(delivery)

Syntax such as `.(Item)` that tells Go a value of type `any` actually holds a particular type. It is needed after `heap.Pop`, which returns `any`.

Where the book teaches it

Related terms

container/heap