Build a Configurable Chain of Responsibility in Go

Use the Chain of Responsibility design pattern to modify app behavior based on configuration changes

Thomas Poignant
Better Programming
Published in
5 min readApr 20, 2021

--

Chain on a fence
Photo by Erik Mclean on Unsplash.

Chain of Responsibility or Chain of Command is a design pattern that lets you pass requests along a chain of Handlers. Each Handler decides to process the request and enrich it or pass it to the next Handler.

--

--