Proposal Details
I propose adding a WithValueReplace function to the context package to allow users to update values associated with existing keys, as I have successfully implemented and tested this feature in our business environment.
Comment From: seankhliao
i don't think this is something that the standard library will support, as it potentially breaks too many things by making a previously immutable value mutable.
you can of course trivially work around this with pointers, or your own context/ value types.
https://go.dev/doc/faq#x_in_std