func (h *handler) Handle(handleID int) string {
	if h.handleID == handleID {
		return h.name + " handled " + strconv.Itoa(handleID)
	}
	return h.next.Handle(handleID)
}
Handle handles a given handleID.
package behavioral
import (
	"strconv"
)
type Handler interface {
	Handle(handleID int) string
}
type handler struct {
	name     string
	next     Handler
	handleID int
}
func NewHandler(name string, next Handler, handleID int) Handler {
	return &handler{name, next, handleID}
}