S
S
sasasa_742013-11-20 18:41:17
go
sasasa_74, 2013-11-20 18:41:17

Help setting up Go

Guys, please tell me how to configure Go correctly, so that when go get ...
no errors would fly out

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kupalov, 2013-12-05
@charlag_khan

I'll tell you about my file structure: I have a folder ~/Code/go. This is where GOPATH points to me (read about environment variables if you work from the command line - export GOPATH=/path/to/folder/s/go will set your GOPATH before closing the terminal, to save the effect you need to set it elsewhere). Now I can go get code.google.com/p/go.net/html and voila! It will create a folder $GOPATH/pkg/code.google.com/p/.... and $GOPATH/src/code.google.com/p/...
I'm going to write a tutorial on setting up a Go environment. For me it was a barrier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question