You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ curl https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar xz
$ export GOROOT=$HOME/go
$ export PATH=$PATH:$GOROOT/bin
$ export GOPATH=$HOME/gopath
$ go version
go version go1.4.2 linux/amd64
$ go get golang.org/x/tools/cmd/gotype
package golang.org/x/tools/cmd/gotype
imports go/importer: unrecognized import path "go/importer"
package golang.org/x/tools/cmd/gotype
imports go/types: unrecognized import path "go/types"
Just going by the commit, it would appear that the future of "gotype" is to use packages that have recently been included in Go's standard library. Is this an intentional deprecation of the command for older versions?
Commit 12c48ced (cmd/gotype: use std lib go/types instead of x/tools version) to the "gotype" tool prevents the tool from being built on versions of go prior to 1.5. For instance:
Just going by the commit, it would appear that the future of "gotype" is to use packages that have recently been included in Go's standard library. Is this an intentional deprecation of the command for older versions?
cc: @griesemer
The text was updated successfully, but these errors were encountered: