Packages
suggest changeA package in Go represents a unit of related code. Other languages often call them libraries.
A package consists of one or more files in a single directory. A directory holds one package, plus an optional external test package named foo_test.
You can have multiple packages in a single repository.
The Go standard library is provided as a set of packages.
A package is identified by its import path. For example, github.com/gomarkdown/markdown is the import path of a package that parses the markdown format.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents