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
go version
$ go 1.20
Yes
go env
$ go env GO111MODULE="on" GOARCH="arm64" GOOS="darwin"
https://go.dev/play/p/5Gf2pDNgCgS
I expect to be able to check if a recieving pointer is nil.
panic: runtime error: invalid memory address or nil pointer dereference
The text was updated successfully, but these errors were encountered:
working as intended. b.IsNil() is equivalent to Foo.IsNil(b.Foo), which is a nil pointer dereference
see also #18617
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/5Gf2pDNgCgS
What did you expect to see?
I expect to be able to check if a recieving pointer is nil.
What did you see instead?
panic: runtime error: invalid memory address or nil pointer dereference
The text was updated successfully, but these errors were encountered: