Skip to content

Glossary: Software Design Patterns in Go

Panic

Also written: panics, panic

A crash that stops the program, which Go keeps for programmer mistakes; other failures return an `error`. Writing to a nil map, or the locked card's `TopUp`, panics.

Where the book teaches it

Related terms

Liskov substitution principle (LSP)Error value