I wanted to download go-tour offline
how can i get it?
I have tried to use code
go get code.google.com/p/go-tour/gotour
but it doesn't work.
I wanted to download go-tour offline
how can i get it?
I have tried to use code
go get code.google.com/p/go-tour/gotour
but it doesn't work.
If by saying "it doesn't work" you mean that you get error message: package code.google.com/p/go-tour/gotour: cannot download, $GOPATH not set. For more details see: go help gopath
, then you need to setup GOPATH and then go get
desired package.
Anyway, here is the complete solution to get GoTour working, assuming you already have Go installed.
mkdir go_tour && cd go_tour
export GOPATH=`pwd`
go get code.google.com/p/go-tour/gotour
./bin/gotour