Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 363 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 363 Bytes

wakeonlan

Very small library to:

  1. create a Wake-on-LAN magic packet
  2. send it to the broacast address 255.255.255.255:9

Usage

import "github.com/da-rod/wakeonlan"

randomMAC := "a7:cc:00:0c:eb:40"
if mp, err := wakeonlan.NewMagicPacket(randomMAC); err == nil {
    mp.Send()
}

See example that builds the CLI binary.