Re:Stages of learning Go, with code examples
by EugeneOZ on Thursday February 26, 2015 @03:53PM
(#9115410)
> There's no such thing as lib1 version 3.x. lib1 is a single version.
I don't agree with this part (or we are talking about different things), but thanks for the second part of reply. At least something :)
There's no way to use "go get" to get anything other than the head of the master branch... at least, not by default. If you use a service like http://gopkg.in then you can encode a version in the url/import path which can then redirect to a branch in github, so for example import "gopkg.in/natefinch/lumberjack.v2" will get the v2 branch of github.com/natefinch/lumberjack (gopkg.in does this with some git magic)