change to pointer type

This commit is contained in:
crusader 2018-08-22 15:46:59 +09:00
parent 8490491bbf
commit 35758642b2

View File

@ -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 {