U_nderstanding the semantic version tags of the dependencies in the go.mod
file in GoLang._
Before we begin, let’s review a quick description of GoLang and Go Modules:
Go is a statically typed, compiled & open source programming language backed by Google.
Go 1.11 and 1.12 include preliminary support for modules, Go’s new dependency management system that makes dependency version information explicit and easier to manage…
Starting in Go 1.13, module mode will be the default for all development.
The go.mod
file is the key to dependency resolution in the Go modules or packages. And in terms of blog.golang.org:
The
_go.mod_
file defines the module’s module path, which is also the import path used for the root directory, and its dependency requirements, which are the other modules needed for a successful build. Each dependency requirement is written as a module path and a specific semantic version.
#technology #code #golang #go #dependency-injection