How to use a module that is outside of “GOPATH” in another module?

I’ve created a library as module for personal usage outside of “GOPATH” in “database” folder with this command “go mod init database” and i don’t know:

  • How to use/ import this module in another module?

os: windows, go: v1.11

1 Like

There are several options depending of your workspace structure.
There are summarized here:
On Windows, relative paths are usually usable.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.