DEV Community

Cover image for Should Remember Module in Go
Angga Lesmana
Angga Lesmana

Posted on

Should Remember Module in Go

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Image description

Now we already create go.sum in our project go-module
we can check our go.sum using terminal

cat go.sum
Enter fullscreen mode Exit fullscreen mode

we will found httprouter, request

Comment add more guys about modules from u

Top comments (0)