Don't omit fields otherwise 0 are considerated as undefined
This commit is contained in:
parent
57977c1c7d
commit
80a8ab478d
1 changed files with 3 additions and 3 deletions
|
@ -43,9 +43,9 @@ import (
|
||||||
|
|
||||||
type SRV struct {
|
type SRV struct {
|
||||||
Target string `json:"target"`
|
Target string `json:"target"`
|
||||||
Port uint16 `json:"port,omitempty"`
|
Port uint16 `json:"port"`
|
||||||
Weight uint16 `json:"weight,omitempty"`
|
Weight uint16 `json:"weight"`
|
||||||
Priority uint16 `json:"priority,omitempty"`
|
Priority uint16 `json:"priority"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SRV) GetNbResources() int {
|
func (s *SRV) GetNbResources() int {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue