Login
From:
www.willem.dev
(Uncensored)
subscribe
Type safe way to add a value to a Go/Golang context
https://www.willem.dev/articles/how-to-add-values-to-context/
links
backlinks
Roast topics
Find topics
Find it!
Don't litter your code base with keys and/or type assertions. Add and get values from contexts in a type safe way.