Go Module Management (1)

Golang manages dependencies by modules.

A module is a collection of packages.

Modules can be downloaded from version control repositories or from module proxy servers.

A go.mod file declares module path, version and dependencies. It is in the module root directory.

A package is a collection of source files which are compiled together.

package path = module path + the subdirectory

posted @ 2022-05-19 17:13  hiccuper-  阅读(33)  评论(0)    收藏  举报