3 ms·
Having to manually pass context through so many functions in code bases is definitely not ideal.
by Teckla 8y ago
Having to manually pass context through so many functions in code bases is definitely not ideal.
- infogulch 8y agoIt doubles the surface area of every library that deals with anything related to IO, and forces middle libraries that don't and shouldn't care about context to double their surface area just to support connecting their consumers to their upstream providers. "not ideal" is an understatement.
- dolmen 8y agoMy contextio package might be useful. Check example: https://godoc.org/github.com/dolmen-go/contextio#example-package--Copy https://godoc.org/github.com/dolmen-go/contextio#example-pac...