Closed Gobd closed 4 days ago
Thank you!
Sorry, maybe I'm missing something here. Does this address response capture?
This should allow you to do
ctx := context.WithValue(cmdCtx.Context(), "test", "value")
cmdCtx = cmdCtx.WithContext(ctx)
to store any value you want in the context then access it in the next handler.
Might be nice to create an example of this for future users in the examples folder
Fixes #12
Done in the same way as http.Request WithContext https://cs.opensource.google/go/go/+/refs/tags/go1.22.4:src/net/http/request.go;l=353