+ Step 1: First you download the installation file here.
+ Step 2: After the download is complete, run File (double click on the file) to start the installation process. The screen will look like the image below => you click Next to continue.
Next, check I accept the term in the License Agreement => then click Next to continue.
Step 3: In this step, you should note:
=> In my opinion, you just keep the default => then click Next to continue.
Ok, at this step you click Install to start the installation.
+ Step 4: The installation process is quite fast, about 1-2 minutes depending on your computer configuration as well as your Internet speed.
After the installation is complete, click Finish to finish.
+ Step 1: Just like when installing Java, we often have to set environment variables, so is Golang. You go to the Edit the system enviroment variables section as shown below.
NOTE: Press the Windows + S combination to open the search dialog => and search with the keyword enviroment
+ Step 2: In the Advanced tab, click Environment Variables…
+ Step 3: Next, you click New to create an environment variable.
Then you choose the Variable name (you set it so that it's easy to remember) and the Variable value points to the folder you installed Golang just now (default is C: Program FilesGo).
=> If you want to change, click Browse Direcrtory…
+ Step 4: Next we will update Golang to the Path environment variable. You click on Path as shown below => then click Edit… to edit.
Then click New and set as shown below. So we're done setting up the environment variable for Golang.
+ Step 5: Now I will check if Golang is installed with the go version command as shown below. The output as shown in the picture means that we have successfully installed it. Here I installed version 1.16.3
Yes, so in this article, I have installed GoLang with you and set up environment variables for Golang on Windows operating system.
In the future with the development of network services (Network Service), Cloud-native, Golang will be a very good choice for developers because of its performance as well as its simplicity.
Hope this article will be useful to you. See you in the next posts!