#golang #go #installation
Go Installation and Setup on Windows
1. Get Go application software package - https://golang.org
2. Install Go to the default location - C:\Go
3. Ensure environment variable PATH gets updated - PATH=%PATH%;C:\Go\bin
4. Create a Simple Hello.go
package main
import "fmt"
func main(){
fmt.Println("Hello Go!")
}
5. Build and Execute Hello.go
To Build,
go build hello.go
To run,
hello
Note: If you want to change the default installation location, please update GOROOT with your custom path
c:\MYDIR\GO
GOROOT=C:\MYDIR\GO
PATH=%PATH%;%GOROOT%
Either set environment variables in command prompt as mentioned above, or set System environment variables in windows
PATH
GOROOT (need to be set only if you choose a location other than the C:\Go)
Next Video :- Concepts and Principles of Go language
Watch video Go(golang) Tutorials - Installation and Setup on Windows online, duration hours minute second in high quality that is uploaded to the channel Ambasoft Java 09 March 2018. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 542 times and liked it 6 visitors.