packagenetlinkimport("fmt""net")// Neigh represents a link layer neighbor from netlink.typeNeighstruct{LinkIndexintFamilyintStateintTypeintFlagsintIPnet.IPHardwareAddrnet.HardwareAddr}// String returns $ip/$hwaddr $labelfunc(neigh*Neigh)String()string{returnfmt.Sprintf("%s %s",neigh.IP,neigh.HardwareAddr)}