Comment by aston
12 years ago
You can't. The right way to spend the 3 minutes is to read the docs. [1] [2]
Also, just because it doesn't work the way NPM does doesn't mean it doesn't work.
[1] http://golang.org/doc/code.html#remote
[2] http://golang.org/cmd/go/#hdr-Remote_import_path_syntax (linked from [1])
Neither of those links address the issue the author mentioned, nor do they describe the need to use your own local copy of a package in case the package authors introduce non-backwards compatible changes. Yes, it needn't behave like NPM, or RubyGems, or Aptitude, or Homebrew, or any of the dozen or so systems out there for install remote packages that let you indicate version.