43 points · by twapi · 6y ago · 3 comments
We tried different ways to do so and easiest method is just have some specific "Context" object and pass it as first/last argument to every function. This is really very easy once you will start using contexts. You already passing something like transactions and other specific data, nothing new, just opaque .
We have built really tiny library for this: https://github.com/openland/context and it is working great. We had zero issues with developers not passing context and very short learning time.