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
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:
os: windows, go: v1.11
There are several options depending of your workspace structure.
There are summarized here: https://golang.org/cmd/go/#hdr-GOPATH_and_Modules
On Windows, relative paths are usually usable.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.