Context is now a Standard Go library. It is the same code as golang.org/x/net/context.
The only thing that is missing is ctxhttp used in only for HTTP microservice clients.
I have a suggestion. To add a new branch to the main go-kit repository that uses the standard Context package and the ctxhttp implementation.
The code with these changes is available in GrimmKull fork in a separate 1.7context branch.
What do you guys think?
P.S.:
If anyone wants to use this before it gets moved to the main repository you can use vendoring.
Example:
govendor fetch "github.com/go-kit/kit/endpoint::github.com/GrimmKull/kit/endpoint@1.7context"
Context is now a Standard Go library. It is the same code as
golang.org/x/net/context.The only thing that is missing is
ctxhttpused in only for HTTP microservice clients.I have a suggestion. To add a new branch to the main go-kit repository that uses the standard Context package and the
ctxhttpimplementation.The code with these changes is available in GrimmKull fork in a separate 1.7context branch.
What do you guys think?
P.S.:
If anyone wants to use this before it gets moved to the main repository you can use vendoring.
Example:
govendor fetch "github.com/go-kit/kit/endpoint::github.com/GrimmKull/kit/endpoint@1.7context"