Where is the module cache in golang?
For Go 1.11, they are stored in $GOPATH/pkg/mod
For Go 1.11, they are stored in $GOPATH/pkg/mod
Found it https://go.dev/blog/using-go-modules#removing-unused-dependencies go mod tidy So basically, once the package is not being imported in any package you can perform a go mod tidy and it will safely remove the unused dependencies. And if you are vendoring the dependencies, then run the command below to make the module changes be applied in the vendor … Read more
Let me define this first modules are collections of packages. In Go 11, I use go modules like the following: If both packages are in the same project, you could just do the following: In go.mod: module github.com/userName/moduleName and inside your main.go import “github.com/userName/moduleName/platform” However, if they are separate modules, i.e different physical paths and … Read more