Correct GOPATH and GOROOT in Ubuntu 14.04
If you get something like this:
package github.com/gin-gonic/gin: cannot download, $GOPATH not set. For more details see: go help gopath
or this:
go tool: no such tool "6g"
And your favorit GNU/Linux distribution named Ubuntu.
Let see:
First! Install golang-gcc and gotool etc. from Ubuntu repository:
sudo apt-get install golang golang-go.tools gccgo-go git mercurial
Next. Set correct GOROOT, GOPATH and PATH for you user.
Just add down code in to ~/.bashrc:
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Now, you can run your code:
$ go run foo.go
Hello, 世界
or download some library into your GOPATH
go get -u github.com/gopherjs/gopherjs
11 мая 2026 / 20:00
Медицинская команда контролирует каждый этап лечения, отслеживая динамику и корректируя терапию при необходимости. Благодаря такому подходу удаётся добиться не временного улучшения, а устойчивого восстановления.
Подробнее можно узнать тут - https://narcologicheskaya-klinika-v-rostove19.ru/
11 мая 2026 / 20:10
рулонные шторы на пластиковые окна купить [url=https://rulonnye-elektroshtory.ru]https://rulonnye-elektroshtory.ru[/url]