Versions in this module Expand all Collapse all v1 v1.0.0 May 1, 2024 Changes in this version + type Addr struct + func AddrFromNet(addr net.HardwareAddr) *Addr + func MustParseMAC(mac string) *Addr + func ParseMAC(mac string) (*Addr, error) + func (a *Addr) Equals(other *Addr) bool + func (a *Addr) IsZeroValue() bool + func (a *Addr) MarshalJSON() ([]byte, error) + func (a *Addr) NetHardwareAddr() net.HardwareAddr + func (a *Addr) String() string + func (a *Addr) UnmarshalJSON(bytes []byte) error + type Set struct + func EmptySet() *Set + func Intersection(s1, s2 *Set) *Set + func Union(s1, s2 *Set) *Set + func (s *Set) Add(mac *Addr) + func (s *Set) AddAllFrom(other *Set) + func (s *Set) All() []*Addr + func (s *Set) Contains(mac *Addr) bool + func (s *Set) Len() int + func (s *Set) MarshalJSON() ([]byte, error) + func (s *Set) Remove(mac *Addr) + func (s *Set) UnmarshalJSON(bytes []byte) error