Do you know Goroutine local storage <https://github.com/jtolds/gls> ?
On Mon, Aug 7, 2017 at 11:20 PM, <as.u...@gmail.com> wrote: > I also dont want to see context everywhere. At the same time, I don't want > it to be obfuscated in a confusing way. > > ctx is an unfortunate initialism and context.Context package stuttering > doesn't help. > > I suppose you could stuff a pointer on the stack pointing to a potential > context and then provide a built-in to access this structure. But that > already sounds confusing and easy to ignore, and you've added a few bytes > of overhead to each function call by providing an auxillary argument to > every function and method. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- *Regards,Linker linlinker.m....@gmail.com <linker.m....@gmail.com>* -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.