I solved it by copying the custom folder to the directory: C:\Program Files\Go\src
That way I can import as in the example I showed before, my problem comes when using the go mod vendor command it copies all the dependencies of my project to a folder called vendor but totally ignores my custom dependencies.
So what can I do to make Go detect my dependencies as vendor repositories?
Any ideas would be welcome but I have to clarify that custom cannot be uploaded to the internet.
I’m pretty sure that’s because you put your custom folder into C:\Program Files\Go\src, so the compiler thinks custom is a package in the standard library and shouldn’t go into vendor.
The only way that I know how to use a different package that isn’t online is using the replace directive in the go mod file like mje said. Basically: