Let’s say I want to get grpc package and all its dependencies, I would do -
go get -u google.golang.org/grpc
The issue with this is that it always gets the latest package. I would like to get a package
with a certain version. “go get -u google.golang.org/grpc@1.2.0” does not work. I know
after getting the above package, I can always go to the downloaded pkg and do “git checkout v1.2.0”.
Just wanted to make sure if there is a better way.