Very small library to:
- create a Wake-on-LAN magic packet
- send it to the broacast address
255.255.255.255:9
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.