Answer the question
In order to leave comments, you need to log in
How to properly save a project with a large number of third-party libraries?
I asked this question, let's say that the project uses 10-15 libraries from github, which are periodically updated and sometimes you need to transfer this project to other machines, how to save the project so that the versions of the libraries match?
Answer the question
In order to leave comments, you need to log in
Use go modules
At the root of the project, execute
go mod init
Done.
Dependencies then pull up on another computer
go mod download
Read more
https://blog.golang.org/using-go-modules
It is necessary to list all dependencies in go.mod, then initiate them using go mod tiny or go mod vendor
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question