Get the latest tech news
Context should go away for Go 2 (2017)
As usual, when a new blog post comes out on blog.golang.org, I’m all eager to read it as soon as possible. The most recent one, Contributors Summit, is a nice write-up on the issues that the Go contributors have been talking about.
At Google, we require that Go programmers pass a Context parameter as the first argument to every function on the call path between incoming and outgoing requests. This is, obviously, achieved by creating another node in the linked list, the purpose of which is to return the correct value for that key and propagate the previous context otherwise. This talk happened before the"context" package was introduced into the Go standard library and thus it discusses solutions to the cancelation problem which only involve simple channels.
Or read this on Hacker News