Versions in this module Expand all Collapse all v1 v1.1.0 Jan 10, 2022 Changes in this version + const EtherType + type Type string v1.0.0 Jan 9, 2022 Changes in this version + const WOLEtherType + var ErrInvalidMAC = errors.New("invalid mac address") + type WOL struct + IP net.IP + Interface string + MAC net.HardwareAddr + Port int + Type WOLType + func NewEther(mac net.HardwareAddr, iface string) (*WOL, error) + func NewUDP(mac net.HardwareAddr, ip net.IP, port int) (*WOL, error) + func (w *WOL) Send() error + type WOLType string + const Ethernet + const UDP