golang tutorial - Install Go | Install Golang | Go Installation - golang - go programming language - google go - go language - go program - google language
Golang Installation
golang , gopro , google go , golang tutorial , google language , go language , go programming language
The Go Compiler
- Converts the source file which is in the human readable source for your program will be converted into computer understandable format. By turning into machine language, your CPU can actually execute the program.
golang , gopro , google go , golang tutorial , google language , go language , go programming language
Download Go archive
- Download latest version of Go installables from Visit www.golang.com
- At the time of writing this tutorial, download the latest version compatible with your OS. I’ve downloaded go1.8.3.windows-amd64.msi (78MB). Copy it into C:\>go folder.
OS | Archive name |
---|---|
Windows | go1.8.3.windows-amd64.msi (78MB) |
Linux | go1.8.3.linux-amd64.tar.gz (86MB) |
Mac | go1.4.darwin-amd64-osx10.8.pkg |
FreeBSD | go1.8.3.src.tar.gz (15MB) |
UNIX/Linux/Mac OS X, and FreeBSD Installation - Go Programming
- Extract the download archive into /usr/local, creating a Go tree in /usr/local/go. For example:
- tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
- Add /usr/local/go/bin to the PATH environment variable.
OS | Output |
---|---|
Linux | export PATH=$PATH:/usr/local/go/bin |
Mac | export PATH=$PATH:/usr/local/go/bin |
FreeBSD | export PATH=$PATH:/usr/local/go/bin |
golang , gopro , google go , golang tutorial , google language , go language , go programming language
Windows Installation - Go Programming
- Use the MSI file and follow the prompts to install the Go tools. By default, the installer uses the Go distribution in c:\Go. The installer should set the c:\Go\bin directory in window's PATH environment variable. Restart any open command prompts for the change to take effect.
golang , gopro , google go , golang tutorial , google language , go language , go programming language
First program in go - Hello world program in go programming:
Create a go file named wikitechy_first.go in C:\>Go_WorkSpace.
File: wikitechy_first.go
- Now run the wikitechy_first.go to see the result:
Installation Via Installable files
- Download Go Lang windows installer from here https://golang.org/dl/
- Run Go Lang installer
- GoLang installation wizard - "welcome" screen - click "Next"
- "Ready to install Go Programming lang ... " screen - click "Install" button
- Check Go Lang version in windows promt - open command line and type go version