A
A
Anton Mashletov2017-09-18 22:26:38
go
Anton Mashletov, 2017-09-18 22:26:38

How to set GOPATH for different folders?

Just sat down to learn Go. And immediately a question.
I have only one Projects folder on my computer and there are subfolders of my various projects in it: sites and desktop applications and PL are also different for each. So convenient.
And it turns out that I have to constantly redefine GOPATH when working with each project on Go?
Or is the whole idea bad form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2017-09-18
@mashletov

Not this way. GOPATH contains all sorts of additional libraries installed by go get. The root directory of your project can be anything, including those outside the GOPATH.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question