code: func Register(name string, initFunc InitFunc) error {
  	if middlewares == nil {
  		middlewares = make(map[string]InitFunc)
  	}
  	if _, exists := middlewares[name]; exists {
  		return fmt.Errorf("name already registered: %s", name)
  	}
  
  	middlewares[name] = initFunc
  
  	return nil
  }
docs: // Register is used to register an InitFunc for
  // a RegistryMiddleware backend with the given name.