go get github.com/HuakunShen/wol/wol-go
go install github.com/HuakunShen/wol@latest
# make sure your $GOPATH/bin is in PATH, for me, the executable is installed in ~/go/bin/wol
~/go/bin/wol --help
wol --help
import {
wol "github.com/HuakunShen/wol/wol-go"
}
...
wol.WakeOnLan(mac, ip, port)