Follow these steps to install and setup your first Go project on windows
- Download and install Vscode my preffered editor
- Download and install git bash for windows
Download and install Go executable from this link.
Set up your GO path by typing this on git bash terminal
This will create a "go" folder in your computers C: directory like so:
- Setup a new project inside the go folder structure like so:
C:/Users/ProfileName/go/src/github.com/githubUserName/projectFolderName, instead of doing this manually, you can use the windows
mkdircommand to create your project file path like so:
mkdir -p $GOPATH/src/github.com/githubProfileName/projectFolderName.
Open up your newly created folder on vscode, install the Go extenstion plugin form vscode plugins to enjoy code highlighting and more.
Create your first Go file with a .go extention then install All on the prompt that pops up after yourFile.go is created.
You are pretty ready to build your first golang project. If this article helped, please kindly hit the buttons so others can get help. Thanks for viewing.