code: func New(ctx context.Context, next http.Handler, config config.Chain, builder chainBuilder, name string) (http.Handler, error) {
  	middlewares.GetLogger(ctx, name, typeName).Debug("Creating middleware")
  
  	middlewareChain := builder.BuildChain(ctx, config.Middlewares)
  	return middlewareChain.Then(next)
  }
docs: // New creates a chain middleware