code: func (client *Client) GetRecordsWithFilters(ctx context.Context, domain, name, recordType string) ([]DNSRecord, error) {
  
  	filters := url.Values{}
  	if name != "" {
  		filters.Add("name", name)
  	}
  	if recordType != "" {
  		filters.Add("record_type", recordType)
  	}
  
  	resp, err := client.dnsRequest(ctx, "/v1/domains/"+domain+"/records", filters, "", "GET")
  	if err != nil {
  		return nil, err
  	}
  
  	var r []DNSRecordResponse
  	if err = json.Unmarshal(resp, &r); err != nil {
  		return nil, err
  	}
  
  	records := make([]DNSRecord, 0, len(r))
  	for _, rec := range r {
  		records = append(records, rec.Record)
  	}
  
  	return records, nil
  }
docs: // GetRecordsWithFilters returns the DNS records (filters can be empty)