3 ms·
Right, you don't know what's in it, but you know you need to forward it if you start a goroutine.
by skybrian 3y ago
Right, you don't know what's in it, but you know you need to forward it if you start a goroutine.
- eweise 3y agoI also need to forward it to nonroutines because there is a logger in the context and almost every function wants to use the logger. So essentially, we have to almost alway pass context as the first argument to any function unless its some private function trivial function.
- jakjak123 3y agoYes, but I will curse everyone who didnt pass the logger so we lost the logcontext :(