Using Modules and Packages in Go

Learn what has changed in Go 1.16

Wei-Meng Lee
Level Up Coding
Published in
9 min readMay 2, 2021

--

Photo by Toby Stodart on Unsplash

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…

--

--

ACLP Certified Trainer | Blockchain, Smart Contract, Data Analytics, Machine Learning, Deep Learning, and all things tech (http://calendar.learn2develop.net).