Working with dependencies in Go¶
Go Modules¶
Creating a go.sum
file¶
-
Initialize the module:
-
Install dependencies:
-
After installing dependencies,
go.mod
andgo.sum
files are automatically created and updated. -
Fixate dependency versions: