I am trying to use the module capabilities of go to understand how they work. I have read the documentation and even replicated the exact process and for some reason the import of local modules. The file tree is like this
src
|
main -> main.go
|
pkg -> pkg.go
The src folder has two folders main and pkg.
My question is where should I call go mod init
and how should I name it. This has been confusing me for a while now.