Go modules
Make a folder
for example: godream
Initiate go mod
Add a package
any package would be fine.
Check your go.mod file
you shall see something new inside of it.
Add your code
add a main.go
file:
Build your module
It will resolve all of your dependencies and build your module as a single binary for you.
Use your program
Last updated