Go - Installation

Local Install

Go programming language, you need the following two software available on your computer
  • A text editor
  • Go compiler

Text Editor

There are many text editor to type your programs. Examples of text editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or vi.

The name and version of text editors can vary on different operating systems For example, Notepad is used on Windows, and vim or vi is used on Windows as well as Linux or UNIX.

files you create with the text editor are called source files. contain program source code. The source files for Go programs are typically named with the extension “.go”

The Go Compiler

Download the latest version of Go installable archive file from Go Downloads.

go1.4.windows-amd64.msi. First copied it into C:\>go folder.

Installation on UNIX/Linux/Mac OS X, and FreeBSD

Extract the download archive into the folder /usr/local Go tree in /usr/local/go. For example
OS Archive name
Windows go1.4.windows-amd64.msi
Linux go1.4.linux-amd64.tar.gz
Mac go1.4.darwin-amd64-osx10.8.pkg
FreeBSD go1.4.freebsd-amd64.tar.gz
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