[go-nuts] Re: Understanding the reasons for reassigning the same variable (GCP microservices demo)

2020-03-24 Thread Karolis Tamutis
I struggled to understand this for a white and just after posting I embarrassingly notice that it's just a form of chaining and handler is passed on. Sorry for the noise On Tuesday, March 24, 2020 at 9:44:31 PM UTC+2, Karolis Tamutis wrote: > > Hi, > > I'm struggling to

[go-nuts] Understanding the reasons for reassigning the same variable (GCP microservices demo)

2020-03-24 Thread Karolis Tamutis
Hi, I'm struggling to understand what's the point of doing the below ... handler = &logHandler{log: log, next: handler} // add logging handler = ensureSessionID(handler) // add session ID handler = &ochttp.Handler{ // add opencensus instrumentation ... Isn't the