Skip to content

Glossary: Coding Interviews in Go

`check` helper

Also written: check helper, check, assert, panic

A small function you write because Go has no `assert` statement. It does nothing if a condition is true and calls `panic`, which stops the program with your message, if it is false.

Where the book teaches it

Related terms

Test functiongo test