Volker 是正确的,但这里有一种在项目中使用特定版本的方法:
go get github.com/sirupsen/logrus
cd $GOPATH/src/github.com/sirupsen/logrus
git checkout v0.9.0
cd $GOPATH/src/github.com/YOU/PROJECT
govendor add github.com/sirupsen/logrus # or similar
Run Code Online (Sandbox Code Playgroud)