Packages

A Go package is just a collection of Go declarations, headed by the appropriate package statement giving the name. A package may be housed in any number of files.

Of course, the purpose of a package is to be imported by another file, which can use its definitions. The importing file can use the names which are said to be exported, which are just the capitalized ones. Names starting with lower case characters are essentially private.

Video lecture: Packages download