2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-07 09:20:22 +00:00
cheat.sheets/sheets/go/packages
2017-05-08 20:27:00 +00:00

9 lines
350 B
Plaintext

// ## Packages
// * Package declaration at top of every source file
// * Executables are in package `main`
// * Convention: package name == last name of import path (import path `math/rand` => package `rand`)
// * Upper case identifier: exported (visible from other packages)
// * Lower case identifier: private (not visible from other packages)