func (p *DigitalOceanProvider) Zones() ([]godo.Domain, error) {
	result := []godo.Domain{}

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

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

	return result, nil
}
func (p *DigitalOceanProvider) Zones() ([]godo.Domain, error) {
	result := []godo.Domain{}

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

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

	return result, nil
}
func ( p * DigitalOceanProvider ) Zones ( ) ( [ ] godo . Domain , error ) { result := [ ] godo . Domain { } zones , err := p . fetchZones ( ) if err != nil { return nil , err } for _ , zone := range zones { if p . domainFilter . Match ( zone . Name ) { result = append ( result , zone ) } } return result , nil }
// Zones returns the list of hosted zones.
Zones returns the list of hosted zones .