Using Modules and Packages in Go
Learn what has changed in Go 1.16
Published in
9 min readMay 2, 2021
If you work with Go, you deal with packages and modules all the time. In Go, a package is a directory of .go files, and packages form the basic building blocks of a Go program. Using packages, you organize your code into reusable units.
A module, on the other hand, is a collection of Go packages, with dependencies and…