Skip to content

adhupraba/golang-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Remove any existing go.mod and go.sum files

  2. Set your GO111MODULE to auto using

go env -w GO111MODULE=auto
  1. go mod init <module_name>

  2. import the necessary external packages in your go files

  3. go mod tidy

  4. the above command will install all the dependencies

IMPORTANT: If you open a folder containing multiple separate GO projects in vs code then you will error that unable to import the package. That is because Go is getting confused looking at multiple go.mod files at the same time. To fix this issue, open a single Go project in a single vs code instance

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages