How to set up the development environment of GoLang?
Oct 28, 2021

This article is about setting up the development environment for GoLang.
Instructions
- Download Go and install
- Update your Visual Studio Code to the latest edition or install the latest edition.
- Install the Go extension for vscode from here.
- Open your Go project in vscode.
- Click install/install all if any popup message is shown. vscode will automatically download all necessary dependencies.
- Navigate to your project folder and check for a file named ‘go.mod’.
- If ‘go.mod’ is not found then use
go mod init
command from Powershell. - i.e:
go mod init zachai.xyz/verify-api
- go.mod file will be created with reference to all used dependencies.
- use
go get -u github.com/golang/dep/cmd/dep
to download dependencies. - use
go build
to build your project. - and run your project.
- Happy coding…😍😍😍