Go Modules: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:


=<tt>go.mod</tt>=
=<tt>go.mod</tt>=
<code>go.mod</code> declares the module path, which is the [Go_Packages#Import_Path|import path]] prefix for all [[Go_Packages#Overview|packages]] within the module.
<code>go.mod</code> declares the module path, which is the [[Go_Packages#Import_Path|import path]] prefix for all [[Go_Packages#Overview|packages]] within the module.

Revision as of 19:36, 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.

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.