Skip to content

Glossary: Data Structures and Algorithms in Go

Panic

Also written: panics, runtime error

A crash Go raises for a serious runtime mistake, such as a nil pointer, an index out of range or popping an empty heap. The program stops and prints an error.

Where the book teaches it

Related terms

nilComma-ok idiom