Search⌘ K
AI Features

Non-Exported Fields

Explore how to work with non-exported fields in Go structs by implementing getter and setter methods. Understand how to safely read and change internal struct data from another package while respecting Go's encapsulation rules.

We'll cover the following...

Methods and non-exported fields

How can we change, or even read the name of the object ...