Go package

A folder of Go source files that are compiled together and share one package name, which other code imports as a unit.

In more detail

Every Go file starts with a package line, and all files in a folder must use the same one. The folder name is usually the import name, so a package in check/ is used as check.Describe. Packages are how you split a tool into parts with clear boundaries.

Example

package check

Related terms

Taught in

References