2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-09 07:10:36 +00:00
cheat.sheets/sheets/_go/packages

9 lines
350 B
Plaintext
Raw Normal View History

2017-05-28 21:17:32 +00:00
// ## 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)