Go theorytheory 0/50 · 0%
Fundamentals · easy

2. Packages and Visibility

Exported names start with a capital letter.

Every file declares a package. Identifiers beginning with an uppercase letter are exported from the package; lowercase ones stay internal. `package main` with `func main()` produces an executable; anything else is a library.

Check your understanding

  1. 1. How is an identifier exported?

  2. 2. Which package makes an executable?