Search⌘ K
AI Features

Exported names

Explore how exported names in Go allow variables, methods, and functions to be accessed outside their package by starting with a capital letter. Understand the difference between exported and unexported identifiers to effectively use Go packages.

We'll cover the following...

How to Export

After importing a package, you can refer to the names it exports (meaning variables, methods, ​and functions that are available from outside of the package). In ...