I'm trying to figure out how to set up middlewares, and right now I've got something like:
func applyMiddleware(h *Handle) *Handle {
return a(b(c(h)))
}
Is there a way to "compose" these functions so I can just pass a list of Handle(s) and it will return the composed function?
a,b, orc? - kingkuppsfunc(*Handle) *Handleotherwise it is not valid go code. - mh-cbon