5 ms·
> The package-name is just a unique name; the only thing it refers to is the package. Not quite. In go, you import 3rd party packages via a URL where a VCS ca
by usrbinbash 3y ago
> The package-name is just a unique name; the only thing it refers to is the package.
Not quite.
In go, you import 3rd party packages via a URL where a VCS can find them, eg.:
import "github.com/gorilla/websocket"
The package name is thus both, an unique name for the package AND a location where the toolchain can find and fetch it.
- denton-scratch 3y agoI see, thanks. Well, that's the problem, I guess. Someone famous once said "Good URLs don't change". Turns out he was pissing in the wind; nobody paid attention. And the market in DNS names guaranteed he'd be wrong.