Don't omit fields otherwise 0 are considerated as undefined
This commit is contained in:
parent
57977c1c7d
commit
80a8ab478d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user