package
0.0.0-20241218053035-7817f0a70428
Repository: https://github.com/lets-learn-it/go-learning.git
Documentation: pkg.go.dev

# README

Chain of Responsibility

  • It lets you pass requests along a chain of handlers. Upon receiving a request, each handler decides either to process the request or to pass it to the next handler in the chain.
type Request struct {
    // things
}

type handler interface {
    handle(r *Request)
    setNext(h handler)
}