This was developed to solve a need to be able to build many small http.Handlers and combine them in various "chains". The main goal was to be able to write small blocks of code that are highly reusable and unit testable. They should all be able to be shoved at any mux that works with standard http.Handlers. Finally it should be easy to unit test many blocks together using httptest.
I look forward to comments/ideas as I am always looking to improve this idea.
https://github.com/kris-runzer/synapse
评论:
nathj07:
ikofai:It sounds good and I intend to look properly later In the meantime I think it would be good to put some solid examples in the README
I've added a simple example :)
