-
Notifications
You must be signed in to change notification settings - Fork 17.4k
New issue
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
context: valueCtx's String panics if value is nil #68356
Comments
Change https://go.dev/cl/597415 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go version
go version go1.23rc1 X:nocoverageredesign linux/amd64
Output of
go env
in your module/workspace:What did you do?
Created a context via calling
context.WithValue
and passed nil to the value and tried printing:Playground:
https://go.dev/play/p/vtF3t_JWxIC?v=gotip
What did you see happen?
Printed the following:
What did you expect to see?
In 1.22, the above program prints:
The text was updated successfully, but these errors were encountered: