In this post, We will discuss how to install go language on windows.
What you will learn:
- How to Install and configure Go Environment on windows.
Go is an open-source programming language that makes it easy to build simple, reliable, and efficient software.
For Instance, Go shell is a popular application that enables us to run Go code before running the actual job on the cluster. In Addition, it is user-friendly so in this blog, we are going to show you how you can install the Go environment on windows as well as on Linux.
It’s open-source at it’s best…but don’t forget: it’s case-sensitive!
So let’s get started on the Microsoft Windows 10 operating system. You’ll see just how easy this really is — only a basic working knowledge of GitHub and the command prompt is required. Sure there are other ways of installing and running the program, but with the limited coding background, I felt this set of instructions was the easiest to understand and follow.
Step 1: As Go uses open-source (FREE!) repositories often, be sure to install the Git package here first.
Step 2: Download and install the latest 64-bit Go set for Microsoft Windows OS.
https://golang.org/dl/
Step 3: Double click on the installer which is downloaded in step 2 and start the installation process
Step 4: Accept the end-user license agreement and click on the Next button.
Step 5: Here you have to select the destination folder where you want to install.
Note: We recommend you to remain the same destination folder which is taken by the system.
Step 6: Now, Click on the Install button
Step 7: Click on the Finish button once the installation gets complete.
Step 8: Verify the installation by running the Command Prompt on your computer by searching for “cmd”. Open the command line and type: “go version”.
Step 8: Run your first hello world programe.
Create one file called hello.go and put the below code in it.
Step 9: Now run the code using the command prompt.
As you can see above we have successfully run our first program which is hello world.
I hope this blog helps you to install Go Environment on windows.