Skip to content

Glossary: Coding Interviews in Go

struct

Also written: struct type

A Go type that groups named fields, such as an `order` with `product`, `channel` and `price`. Structs also make tree nodes, list nodes and heap items.

Where the book teaches it

Related terms

struct{}Linked list