How to set up the development environment of GoLang?

--

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…😍😍😍

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Faisal AL Mahmud
Faisal AL Mahmud

Written by Faisal AL Mahmud

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

No responses yet

Write a response