Monday, October 26, 2015

How to Install GO Lang on CentOS / Amazon Linux?

0 lượt xem comment 0 comments

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
Tags: no keyword

comment 0 comments

Chuyên mục văn hoá giải trí của VnExpress

.

© 2017 www.blogthuthuatwin10.com

Tầng 5, Tòa nhà FPT Cầu Giấy, phố Duy Tân, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội
Email: nguyenanhtuan2401@gmail.com
Điện thoại: 0908 562 750 ext 4548; Liên hệ quảng cáo: 4567.