Go packages are installed via a go get
command.
go get github.com/some/module
Running the go get
command will list the installed package in go.mod
module file
mod
file, require()
method will list the dependencies link and versions (automatically listed once compiled)require ( github.com/some/module v0.14.0 // indirect )
go get -u example.com/some-module
alias
package importimport ( "text/template" // this is imported as htmltemplate to avoid collision htmltemplate "html/template" )