How to get started to use the Golang dependencies management tool

Make a folder

for example: godream

Initiate go mod

cd godream
go mod init github.com/yingshaoxo/godream

Add a package

any package would be fine.

go get -u github.com/fogleman/gg

Check your go.mod file

you shall see something new inside of it.

Build your module

go build

It will resolve all of your dependencies and build your module as a single binary for you.

Use your program

./godream

The author

https://yingshaoxo.blogspot.com