logoalt Hacker News

Thaxll01/21/20251 replyview on HN

Because you should wrapp that in a type safe function. You should not use the context.GetValue() directly but use your own function, the context is just a transport mechanism.


Replies

kflgkans01/21/2025

If it is just a transport mechanism, why use context at all ant not a typed struct?

show 1 reply