This article is about setting up the development environment for GoLang.

Instructions

  1. Download Go and install
  2. Update your Visual Studio Code to the latest edition or install the latest edition.
  3. Install the Go extension for vscode from here.
  4. Open your Go project in vscode.
  5. Click install/install all if any popup message is shown. vscode will automatically download all necessary dependencies.
  6. Navigate to your project folder and check for a file named ‘go.mod’.
  7. If ‘go.mod’ is not found then use go mod init command from Powershell.
  8. i.e: go mod init zachai.xyz/verify-api
  9. go.mod file will be created with reference to all used dependencies.
  10. use go get -u github.com/golang/dep/cmd/dep to download dependencies.
  11. use go build to build your project.
  12. and run your project.
  13. Happy coding…😍😍😍

--

--

Faisal AL Mahmud

Faisal AL Mahmud

Every lie we tell incurs a debt to the truth. Sooner or later, that debt is paid.