4 ms·
Context's WithValue will be an interface even if go supported generics. It stores anything, not values of a specified type. Same with fmt
by saturn_vk 7y ago
Context's WithValue will be an interface even if go supported generics. It stores anything, not values of a specified type. Same with fmt
- ben0x539 7y agoYeah, that's what I meant with "some aren't", I was mostly listing stuff to support the idea that `interface{}` itself is ubiquitous and not some super-niche edge case that never shows up in real code.