Skip to content

Glossary: Go Beyond the Basics

panic

Also written: panics

A runtime failure that stops the program, such as writing to a nil map or sending on a closed channel. `net/http` catches a handler's panic, but a panic in a goroutine you start crashes the whole program.

Where the book teaches it

Related terms

recovernil map