#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
Смотрите видео Go(golang) Tutorials - Installation and Setup on Windows онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Ambasoft Java 09 Март 2018. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 542 раз и оно понравилось 6 посетителям.