change to pointer type
This commit is contained in:
parent
8490491bbf
commit
35758642b2
|
@ -5,9 +5,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Interface struct {
|
type Interface struct {
|
||||||
Iface string `json:"iface,omitempty"`
|
Iface string `json:"iface,omitempty"`
|
||||||
Mac string `json:"mac,omitempty"`
|
Mac string `json:"mac,omitempty"`
|
||||||
Addresses []InterfaceAddress `json:"addresses,omitempty"`
|
Addresses []*InterfaceAddress `json:"addresses,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type InterfaceAddress struct {
|
type InterfaceAddress struct {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user