Veuillez répondre à ces questions avant de soumettre votre problème. Merci!
go version
) ?go version go1.6.3 linux/amd64
go env
) ?CentOS Linux release 7.1.1503 (Core)
[root<strong i="14">@nc</strong> go]# go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
[root<strong i="15">@nc</strong> go]# go version
go version go1.6.3 linux/amd64
Si possible, fournissez une recette pour reproduire l'erreur.
Un programme exécutable complet est bon.
Un lien sur play.golang.org est préférable.
Je reçois golang.org/x/tools/cmd/oracle
mais j'ai échoué.
J'aimerais obtenir et construire golang.org/x/tools/cmd/oracle
.
[root<strong i="28">@nc</strong> go]# go get golang.org/x/tools/cmd/oracle
package golang.org/x/tools/cmd/oracle: cannot find package "golang.org/x/tools/cmd/oracle" in any of:
/usr/lib/golang/src/golang.org/x/tools/cmd/oracle (from $GOROOT)
/root/go/src/golang.org/x/tools/cmd/oracle (from $GOPATH)
[root<strong i="29">@nc</strong> go]#
[root<strong i="30">@nc</strong> go]# go get -u -v golang.org/x/tools/cmd/oracle
Fetching https://golang.org/x/tools/cmd/oracle?go-get=1
Parsing meta tags from https://golang.org/x/tools/cmd/oracle?go-get=1 (status code 200)
get "golang.org/x/tools/cmd/oracle": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/
x/tools/cmd/oracle?go-get=1
get "golang.org/x/tools/cmd/oracle": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)
package golang.org/x/tools/cmd/oracle: cannot find package "golang.org/x/tools/cmd/oracle" in any of:
/usr/lib/golang/src/golang.org/x/tools/cmd/oracle (from $GOROOT)
/root/go/src/golang.org/x/tools/cmd/oracle (from $GOPATH)
Il a été renommé en "gourou".
Commentaire le plus utile
Il a été renommé en "gourou".
https://godoc.org/golang.org/x/tools/cmd/guru