What version of Go are you using (go version
)?
$ go version go version go1.12.6 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GOARCH="amd64" GOBIN="" GOCACHE="/Users/esharifu/Library/Caches/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/esharifu/projects/go" GOPROXY="" GORACE="" GOROOT="/usr/local/Cellar/go/1.12.6/libexec" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.12.6/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sh/vcq1w7n1547584p7d_kh_vf00000gn/T/go-build605958996=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
Trying to get implementations of interface in go
What did you expect to see?
gopls returns the list of places with structures which implements interface
What did you see instead?
textDocument/implementation
request is not implemented
Actually, the author of
bingo
have already done this work and took theguru
implementation.He now manages the fork of
gopls
at https://github.com/saibing/toolsI don’t know if @saibing wishes to integrate his work into the main repo, but I can try to merge the code on top of the current master.
Change https://golang.org/cl/203918 mentions this issue:
internal/lsp: add support for implements to the LSP
Change https://golang.org/cl/206150 will fix the second of @nezorflame‘s bullet points (implements on interface functions). I plan to work on implementations across packages (but still only within the same workspace) next week.