return fmt.Errorf("component type %s must be struct or pointer to struct", rc.goType.String())
}
return fmt.Errorf("component type %s is already registered", rc.goType.String())
}
r.rcByFqn[fqn] = rc
r.rcByID[id] = rc
r.rcByGoType[rc.goType] = rc
return nil
}