change to pointer type
This commit is contained in:
@@ -7,7 +7,7 @@ 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user