A
A
Askar Fuzaylov2016-09-10 13:19:27
go
Askar Fuzaylov, 2016-09-10 13:19:27

How to build a directory structure to work with different golang projects?

Hello.
The problem is that I have one test project located in the ~/Projects/golang/projects/someproject directory and in the project directory I want to create another project ~/Projects/golang/projects/analytics . But if I go to ~/Projects/golang/projects/someproject and do go install I get an error.

no install location for directory ~/Projects/golang/projects/analytics outside GOPATH

GOPATH looks in the ~/Projects/golang directory.
How to build a folder structure for multiple projects and where should GOPATH look in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Semchenko, 2016-09-10
@ARACOOOL

pixfid at Sierra in ~
$ echo $GOPATH
/Users/pixfid/Work

Own all projects in :/Users/pixfid/Work/src/github.com/pixfid/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question