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.
← Go theorytheory 0/50 · 0%
Fundamentals · easy
2. Packages and Visibility
Exported names start with a capital letter.
Check your understanding
1. How is an identifier exported?
2. Which package makes an executable?