We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think this works without go/packages:
hello.go
package main import "fmt" func main() { fmt.Println("Hello, World!") }
go mod init
godef -f hello.go fmt.Println
godef: Offset -1 was not a valid identifier
The text was updated successfully, but these errors were encountered:
try godef -t -f hello.go -o 43, you may get
godef -t -f hello.go -o 43
xxx/hello.go:3:8 import (fmt "fmt")
Sorry, something went wrong.
try godef -t -f hello.go -o 43, you may get xxx/hello.go:3:8 import (fmt "fmt")
This is about the expression mode not working. Offset mode still works.
Mod is not supporting expression now, it uses https://godoc.org/golang.org/x/tools/go/packages to find definition.
No branches or pull requests
I think this works without go/packages:
hello.go
:go mod init
.godef -f hello.go fmt.Println
.godef: Offset -1 was not a valid identifier
The text was updated successfully, but these errors were encountered: