Skip to content

Glossary: Coding Interviews in Go

struct{}

Also written: empty struct

Go's empty struct, which takes no space. As a map's value type it makes a set, where the keys are what matter.

Where the book teaches it

Related terms

Hash map lookup and countingstruct