tagomoris/xbuild — pull request #15 by rosylilly (2014-10-28 07:53:00+00:00)
Title: Support go

Simply usage:

```
$ go-install 1.3.3 ~/local/go
```

With OS and ARCH options:

```
$ go-install 1.3.3 ~/local/go linux amd64
```

Testing:

```shell
$ docker build -t xbuild .
$ docker run --rm -i -t xbuild /bin/bash
$ go-install 1.3.3 /usr/local/go
go 1.3.3 successfully installed on /usr/local/go
To use this go, do 'export PATH=/usr/local/go/bin:$PATH' and 'export GOROOT=/usr/local/go'.
$ export PATH=/usr/local/go/bin:$PATH
$ export GOROOT=/usr/local/go
$ go version
version go1.3.3 linux/amd64
$ go-install 1.3.3 /usr/local/go
go 1.3.3 already installed on /usr/local/go
To do force re-install, use '-f' option
$ go-install 1.2.2 /usr/local/go
Start to install go 1.2.2 ...
go 1.2.2 successfully installed on /usr/local/go
To use this go, do 'export PATH=/usr/local/go/bin:$PATH' and 'export GOROOT=/usr/local/go'.
$ go version
go version go1.2.2 linux/amd64
```