When I import a package in a go application (using modules and vscode with golang plugin):
import (
cors "goa.design/plugins/cors/dsl"
)
go automatically retrieves the package.
How does go know where to get it from?
I figured it simply pulls the sources from github.com, but the repository for this project is at https://github.com/goadesign/goa
no .
in the name.
And if I change the import to:
import (
cors "goa.design/plugins/v3/cors/dsl"
)
It retrieves the v3
package. I would gladly RTFM, but not sure which FM I need to read.
Btw: this is my second day on go
so this is magic to me.