G
G
Georgy Pugachev2019-12-03 22:57:37
go
Georgy Pugachev, 2019-12-03 22:57:37

How to make a directory structure to use multiple projects?

I have several projects that use packages of the same name, but with partially different functionality. I registered both projects in GOPATH, as a result, when I compile one project, it pulls the sources from the second one and it turns out to be a mess.
How to work with several projects if they use the same name, but different packages?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2019-12-04
@gvpugachev

GOPATH has long been deprecated. Modern Go has moved to the go modules system, projects must be created in separate folders outside the GOPATH.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question