my net house

WAHEGURU….!

Easy way to have Module Support in Golang

In Your main.go file add all the dependencies, like “yourProject/lib”, “yourProject/test”,”yourProject/hello”

The go to Root DIR of project and run Following:

go mod init yourProject ..> it will generate go.mod file

go mod download ..> it will generate go.sum file

go mod download

go mod verify
That’s all , enjoy life and amazing Module level management in Golang.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: