Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Context's WithValue will be an interface even if go supported generics. It stores anything, not values of a specified type. Same with fmt


Yeah, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: