Skip to content

Glossary: Data Structures and Algorithms in Go

nil

Also written: nil pointer, nil slice, nil map

Go's value for a pointer, map or slice that points at nothing. It marks the end of a linked list or an empty tree spot; using it as if it pointed to something causes a panic.

Where the book teaches it

Related terms

PointerZero valuePanic