What is proper way to import (use) go module internally?
For example:
creating a new module by: go mod init example.com/my-project
(example.com or another domain, which doesn't exist)
and using it in the same project:
import (
"example.com/my-project/package"
)
This sample was taken from Let's Go book (but extremely simplified)
The problem:
I am using Goland, and It doesn't recognize this local module. Goland advice me to use go get -t example.com/my-project/package
command. But example.com/...
just a name for a module