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`.
Glossary: Data Structures and Algorithms in Go
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`.