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.
Glossary: Coding Interviews in Go
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.