Skip to content

Glossary: Go Basics

Anonymous struct

Also written: anonymous structs

A struct type written in place without a `type` name, used when it's needed only once. Table tests use it for their list of cases.

Where the book teaches it