// Adapt a ContextHandlerFunc into a ContextHandler.
Adapt a ContextHandlerFunc into a ContextHandler.
// Adapt a ContextHandlerFunc into a ContextHandler .
func adaptContextHandlerFunc(fn ContextHandlerFunc) ContextHandler {
	return func(ctx *Context) http.Handler {
		return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
			fn(ctx, w, r)
		})
	}
}
func adaptContextHandlerFunc ( fn ContextHandlerFunc ) ContextHandler { return func ( ctx * Context ) http . Handler { return http . HandlerFunc ( func ( w http . ResponseWriter , r * http . Request ) { fn ( ctx , w , r ) } ) } }
Adapt a ContextHandlerFunc into a ContextHandler.
Adapt a ContextHandlerFunc into a ContextHandler .