// Get returns the generator for the given ID.
Get returns the generator for the given ID.
// Get returns the generator for the given ID .
func (r *Registry) Get(id string) (Generator, error) {
	for _, generator := range r.generators {
		if generator.ID() == id {
			return generator, nil
		}
	}
	return nil, fmt.Errorf("generator not found [%s]: %w", id, orberrors.ErrContentNotFound)
}
func ( r * Registry ) Get ( id string ) ( Generator , error ) { for _ , generator := range r . generators { if generator . ID ( ) == id { return generator , nil } } return nil , fmt . Errorf ( " " , id , orberrors . ErrContentNotFound ) }
Get returns the generator for the given ID.
Get returns the generator for the given ID .