logoalt Hacker News

skywhopper01/21/20251 replyview on HN

Precisely because you need to be able to pass it through third party libraries and into callbacks on the other side where you need to recover the values.


Replies

lawrjone01/22/2025

Yeah most people talking here are unlikely to have worked on large scale Go apps.

Managing a god-level context struct with all the fields that ever could be relevant and explaining what they mean in position independent ways for documentation is just not scalable at all.

Import cycles mean you’re forced into this if you want to share between all your packages, and it gets really hairy.