The important should me know in learn go that's it about golang modules,
let we try to remember how to create simple golang modules
first we create folder in our directories
create folder
mkdir go-modules
cd go-modules
okay we already create folder and in folder go-modules
and than we will create module into my github
go mod init github.com/AnggaChelsea/go-modules
go.mod will created
now we will try use go get for get http request in our go-modules project
go get github.com/julienschmidt/httprouter
go get go.uber.org/zap
Now we already create go.sum in our project go-module
we can check our go.sum using terminal
cat go.sum
we will found httprouter, request
Comment add more guys about modules from u
Top comments (0)