How to Install GO Lang on CentOS / Amazon Linux?

Go Lang is growing a lot.  It`s a C on Steroids language. You have great performance and also some nice features that are built in on the language. In this post i will show how to install and configure GO on Amazon Linux / CentOS based.

Go has Closures, so you can have performance and still do some kind of functional programming.  There are lots of infrastructures tools being built on Go as well.  Besides go have great multi-core support and async mechanisms.

Lots of great infrastructure solutions use go like Docker, CoreOS, HarishCorp solutions.  Le`ts see how install and configure it on Amazon Linux(AWS Cloud).




Go on Linux

How to Install GO Lang on CentOS / Amazon Linux?

sudo wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
tar -xzf go1.4.2.linux-amd64.tar.gz 
export GOROOT=PATH_WHERE_YOU_EXTRACT_GO
export PATH=$PATH:$GOROOT/bin 
export GOBIN=$GOROOT/bin 
mkdir ~/golang/ 
export GOPATH=~/golang/ 
export PATH=$GOPATH/bin:$PATH 
go get code.google.com/p/go-tour/gotour
gotour 

Add system vars on ~/.bashrc

export GOROOT=/home/ec2-user/go-14
export PATH=$PATH:$GOROOT/bin
export GOPATH=/home/ec2-user/
export PATH=$GOPATH/bin:$PATH
export GOBIN=/home/ec2-user/go-14/bin/

Eclipse Plugin?

https://github.com/GoClipse/goclipse

view raw go-install.md hosted with ❤ by GitHub

Cheers,
Diego Pacheco

Popular posts from this blog

Having fun with Zig Language

C Unit Testing with Check

Cool Retro Terminal