DEV Community

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

Posted on

1 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay