From 35758642b225d8209ad8a392814231da64c56461 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 22 Aug 2018 15:46:59 +0900 Subject: [PATCH] change to pointer type --- net/nic.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/nic.go b/net/nic.go index 4b14e05..1077481 100644 --- a/net/nic.go +++ b/net/nic.go @@ -5,9 +5,9 @@ import ( ) type Interface struct { - Iface string `json:"iface,omitempty"` - Mac string `json:"mac,omitempty"` - Addresses []InterfaceAddress `json:"addresses,omitempty"` + Iface string `json:"iface,omitempty"` + Mac string `json:"mac,omitempty"` + Addresses []*InterfaceAddress `json:"addresses,omitempty"` } type InterfaceAddress struct {