Skip to content

Glossary: Coding Interviews in Go

any

Also written: x.(int), type assertion

Go's type that can hold a value of any type. The heap's `Push` and `Pop` use `any`, so `x.(int)` converts the value back to an `int`.

Where the book teaches it

Related terms

container/heapHeap for top k