News for hackers. Stuff that matters.
Re:Why Go is elegant and makes my code elegant by robert_tweed on Wednesday April 09, 2014 @05:09PM (#7562415)
Same way it works in Java: by convention. You use the repository URL on e.g., github in the package name, so if that URL is unique then your package name is unique.

It rather relies on the assumption that you do have one unique canonical URL associated with your package for this to work, but one of the things about go is that a lot of it is based on pragmatic assumptions that turn out to be true often enough that the edge cases don't matter.

If you use go get, it can auto-download any such publicly hosted packages, which is a nice feature, especially as it can get the dependencies for you as well.

There are no comments on this comment yet.