Skip to content

Glossary: Coding Interviews in Go

nil

Also written: nil pointer

Go's value for 'points to nothing', such as a missing tree child or the end of a linked list. Reading through a `nil` pointer crashes the program, so check first.

Where the book teaches it

Related terms

Linked listTree recursionBase case