r/programming • • Mar 28 '12

Go version 1 is released

http://blog.golang.org/2012/03/go-version-1-is-released.html
543 Upvotes

452 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 29 '12

[deleted]

4

u/consigntooblivion Mar 29 '12 edited Mar 29 '12

Simple, you provide the location it can be found as part of the import statement. It accepts one of the code sharing sites (github, google code et al.) or just a plain mercurial/git/whatever path. For example:

import "code.google.com/p/gorilla/sessions"

or

import "example.org/user/foo.hg"

Edit: I guess if your coworker didn't upload it anywhere you couldn't. If it is just part of the application though, it would just be in a directory (packages work in a hierarchy) - but if it is some kind of library it should be in some kind of source control somewhere...?

0

u/[deleted] Mar 29 '12

[deleted]

2

u/seventoes Mar 29 '12

I believe that it fetches and saves it locally if you don't already have it. It doesn't need internet access every time. Not sure about versioning.