provider/rcode0.go
func (p *RcodeZeroProvider) Zones() ([]*rc0.Zone, error) {

	var result []*rc0.Zone

	zones, err := p.fetchZones()
	if err != nil {
		return nil, err
	}

	for _, zone := range zones {
		if p.DomainFilter.Match(zone.Domain) {
			result = append(result, zone)
		}
	}

	return result, nil
}
func (p *RcodeZeroProvider) Zones() ([]*rc0.Zone, error) {

	var result []*rc0.Zone

	zones, err := p.fetchZones()
	if err != nil {
		return nil, err
	}

	for _, zone := range zones {
		if p.DomainFilter.Match(zone.Domain) {
			result = append(result, zone)
		}
	}

	return result, nil
}
func ( p * RcodeZeroProvider ) Zones ( ) ( [ ] * rc0 . Zone , error ) { var result [ ] * rc0 . Zone zones , err := p . fetchZones ( ) if err != nil { return nil , err } for _ , zone := range zones { if p . DomainFilter . Match ( zone . Domain ) { result = append ( result , zone ) } } return result , nil }
// Zones returns filtered zones if filter is set
Zones returns filtered zones if filter is set