It has been proposed on two occasions by @nolash that package import URLs which don't end with the same name as the package they are importing should be explicitly aliased (see here and here).
So for example, import github.com/ipfs/go-cid should actually be import cid github.com/ipfs/go-cid even though the package is already called cid.
I am against this because I never manually edit imports (I just let goimports do it, which I assume most people do), and so doing so means I have to go and look at the imports all the time, even if the code compiles just fine.
That being said, I am happy to do this if most contributors find it useful.
/cc @nolash @orenyodfat @zelig
It has been proposed on two occasions by @nolash that package import URLs which don't end with the same name as the package they are importing should be explicitly aliased (see here and here).
So for example,
import github.com/ipfs/go-cidshould actually beimport cid github.com/ipfs/go-cideven though the package is already calledcid.I am against this because I never manually edit imports (I just let
goimportsdo it, which I assume most people do), and so doing so means I have to go and look at the imports all the time, even if the code compiles just fine.That being said, I am happy to do this if most contributors find it useful.
/cc @nolash @orenyodfat @zelig