Skip to content

Glossary: Coding Interviews in Go

maps.Equal

Also written: slices.Equal

A function that compares two maps (or, for `slices.Equal`, two slices) for equal contents. It is needed because `==` doesn't work on maps or slices.

Where the book teaches it

Related terms

go test