Don't omit fields otherwise 0 are considerated as undefined

This commit is contained in:
nemunaire 2020-06-27 16:03:13 +02:00
parent 57977c1c7d
commit 80a8ab478d

View File

@ -43,9 +43,9 @@ import (
type SRV struct {
Target string `json:"target"`
Port uint16 `json:"port,omitempty"`
Weight uint16 `json:"weight,omitempty"`
Priority uint16 `json:"priority,omitempty"`
Port uint16 `json:"port"`
Weight uint16 `json:"weight"`
Priority uint16 `json:"priority"`
}
func (s *SRV) GetNbResources() int {