2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/_go/packages
2017-05-28 21:17:32 +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)