Installation guide Go (window 10)

Requirement: Windows 10

Step 1:

Open Powershell as run as administrator

# to switch from system folder
PS C:\Users\ADMIN> cd ~

Before installation, we must provide permission through Powershell (modes:

  1. restricted

  2. allsigned

  3. remotesigned

  4. unrestricted

Here we will be using remoteSigned that helps running scripts and conf files from the internet by trusted publishers. (please read online if you wish to explore)

# to ask powershell to provide execution policy
PS C:\Users\ADMIN> Set-ExecutionPolicy -Scope CurrentUser

# once executed type
PS C:\Users\ADMIN> RemoteSigned

# press enter followed by 'y' to confirm

# to check the set type
PS C:\Users\ADMIN> Get-ExecutionPolicy -List

Step 2: installing package manager chocolatey

( chocolatey is package manager just like pip and cmd line package manager for windows just like apt-get does on Linux, please read if you wish to explore)

# to create webClient object
PS C:\Users\ADMIN> $script = New-Object Net.WebClient

# to return all members
PS C:\Users\ADMIN> $script | Get-Member

# to download chocolatey
PS C:\Users\ADMIN> $script.DownloadString(“https://chocolatey.org/install.ps1
”)

# to isntall 
PS C:\Users\ADMIN> iwr https://chocolatey.org/install/ps1 -UseBasicParsing | iex

( iwr : invoke web request, iex : Invoke Expression )

Step 3: Installing text editor (Nano: optional)

PS C:\Users\ADMIN> choco install -y nano

Step 4:

Installing Go

# type below to isntall golang
PS C:\Users\ADMIN> choco install -y golang

# after installation is done, test it using
PS C:\Users\ADMIN> go version

Step 6: Install VS code Download link

Packages list to install: (continue reading)

  1. Go

  2. Docker

  3. Kubernetes

Last updated

Was this helpful?