func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error) {
	var setRecords []libdns.Record
	//println("--SetRecords",zone,records[0].Name)

	for _, rec := range records {
		err := p.setRecord(ctx, zone, rec, false)
		if err != nil {
			return nil, err
		}
		setRecords = append(setRecords, rec)
	}

	return setRecords, nil
}
// SetRecords sets the records in the zone, either by updating existing records or creating new ones, and returns the recordsthat were updated.
SetRecords sets the records in the zone, either by updating existing records or creating new ones, and returns the recordsthat were updated.
// SetRecords sets the records in the zone either by updating existing records or creating new ones and returns the recordsthat were updated .
func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error) {
	var setRecords []libdns.Record
	for _, rec := range records {
		err := p.setRecord(ctx, zone, rec, false)
		if err != nil {
			return nil, err
		}
		setRecords = append(setRecords, rec)
	}
	return setRecords, nil
}
func ( p * Provider ) SetRecords ( ctx context . Context , zone string , records [ ] libdns . Record ) ( [ ] libdns . Record , error ) { var setRecords [ ] libdns . Record for _ , rec := range records { err := p . setRecord ( ctx , zone , rec , false ) if err != nil { return nil , err } setRecords = append ( setRecords , rec ) } return setRecords , nil }
SetRecords sets the records in the zone, either by updating existing records or creating new ones, and returns the recordsthat were updated.
SetRecords sets the records in the zone either by updating existing records or creating new ones and returns the recordsthat were updated .
//println("--SetRecords",zone,records[0].Name)