Skip to content

Commit c0ed859

Browse files
committed
fix: omitempty
1 parent 3d16c09 commit c0ed859

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

providers/dns/nicru/internal/types.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ type RR struct {
2020
Text string `xml:",chardata"`
2121
ID string `xml:"id,attr,omitempty"`
2222
Name string `xml:"name"`
23-
IDNName string `xml:"idn-name,omitempty"`
23+
IDNName string `xml:"idn-name"`
2424
TTL string `xml:"ttl"`
2525
Type string `xml:"type"`
26-
SOA *SOA `xml:"soa"`
27-
A string `xml:"a"`
28-
AAAA string `xml:"aaaa"`
29-
CName *CName `xml:"cname"`
30-
NS *NS `xml:"ns"`
31-
MX *MX `xml:"mx"`
32-
SRV *SRV `xml:"srv"`
33-
PTR *PTR `xml:"ptr"`
34-
TXT *TXT `xml:"txt"`
35-
DName *DName `xml:"dname"`
36-
HInfo *HInfo `xml:"hinfo"`
37-
NAPTR *NAPTR `xml:"naptr"`
38-
RP *RP `xml:"rp"`
26+
SOA *SOA `xml:"soa,omitempty"`
27+
A string `xml:"a,omitempty"`
28+
AAAA string `xml:"aaaa,omitempty"`
29+
CName *CName `xml:"cname,omitempty"`
30+
NS *NS `xml:"ns,omitempty"`
31+
MX *MX `xml:"mx,omitempty"`
32+
SRV *SRV `xml:"srv,omitempty"`
33+
PTR *PTR `xml:"ptr,omitempty"`
34+
TXT *TXT `xml:"txt,omitempty"`
35+
DName *DName `xml:"dname,omitempty"`
36+
HInfo *HInfo `xml:"hinfo,omitempty"`
37+
NAPTR *NAPTR `xml:"naptr,omitempty"`
38+
RP *RP `xml:"rp,omitempty"`
3939
}
4040

4141
type SOA struct {

0 commit comments

Comments
 (0)