So I installing new computer on my company, using Arch Linux as usual.
How to install Go? it's really easy when using yaourt, just type:
yaourt --needed --noconfirm -S --force go mercurial git bzr subversion liteide gdb
Go took about 40.76 MB
Mercurial, Git, Bzr and Subversion requires about 13.12 MB
LiteIDE took about 13.14 MB
Gdb took about 3.06 MB
Set your working directory:
mkdir ~/go
export GOPATH=~/go
export PATH=$PATH:~/go/bin
I suggest that you should put those environment variables on .bashrc
Then you can test the installation, create a file named test1.go
package main
import "fmt"
func main() {
fmt.Println("Hello my lovely PC :3")
}
Run it using:
go run test1.go
or
go build test1.go && ./test1
or press Ctrl+R on LiteIDE.
programming: the action or process of writing computer programs. | rants: speak or shout at length in a wild, [im]passioned way.
2014-08-23
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment
THINK: is it True? is it Helpful? is it Inspiring? is it Necessary? is it Kind?