Skip to content

Glossary: Data Structures and Algorithms in Go

Base case

Also written: base cases

The input a recursive function answers directly without calling itself, such as an empty slice in `sumList`. Without one, recursion never stops.

Where the book teaches it

Related terms

RecursionCall stackStack overflow