Go Modules: Difference between revisions
Jump to navigation
Jump to search
(→go.mod) |
|||
Line 11: | Line 11: | ||
=Overview= | =Overview= | ||
A module is a collection of related [[Go_Packages#Overview|packages]] with built-in dependencies and versioning, that are released together. | A module is a collection of related [[Go_Packages#Overview|packages]] with built-in dependencies and versioning, that are released together. The module contains the packages in the directory containing its <code>[[#go.mod|go.mod]]</code> file as well as subdirectories of that directory, up to the next subdirectory containing another <code>go.mod</code> file (if any). | ||
=Declaring Modules= | =Declaring Modules= |
Revision as of 19:38, 7 September 2023
Internal
TO PROCESS
To process:
Overview
A module is a collection of related packages with built-in dependencies and versioning, that are released together. The module contains the packages in the directory containing its go.mod
file as well as subdirectories of that directory, up to the next subdirectory containing another go.mod
file (if any).
Declaring Modules
Building Modules
Publishing Modules
Consuming Modules
go.mod
go.mod
declares the module path, which is the import path prefix for all packages within the module.