Wait until a system:port is up while you mind your own business...
https://github.com/ebitengine/oto#prerequisite
sudo apt install libasound2-devA lot of times you need to wait for a host machine to be up... e.g: Create an instance in the cloud and wait until the ssh port is up so you can connect. Instead of trying several times to connect, or use netcat to warn you, you can use waitfor!
waitfor will try to connect to the host:port, with a default timeout of 10m (configurable). Whether it success or fails, waitfor will send you a nice OS notification with the result, and a wake-up sound.
waitfor google.com:80Specifying timeout value (valid time units are "s", "m", "h")
waitfor -timeout 1m 8.8.8.8:53 We use github.com/crazy-max/xgo to crosscompile with CGO and additional compilers.
xgo '-targets=windows/*,darwin/*' .
- use multiple regexps (1 for scheme://host:port, another for host:port, another for ip:port)
- test in windows & mac