Skip to content

Glossary: Go Beyond the Basics

unexported field

Also written: exported, private field

A struct field whose name starts with a lowercase letter, so other packages can't see it. `encoding/json` skips unexported fields, such as `cost`.

Where the book teaches it

Related terms

struct tagjson.Marshal / json.Unmarshal