You can always call the OS's ping command from within go. This isn't too terrible. You can see a cross-platform example here: https://github.com/jcuga/goping
On Saturday, August 10, 2013 at 2:55:31 AM UTC-4, will wrote: > > Hi everyone, > > I am a newbie to golang and loving it. > > Is there a way to find out if a host is up or down. In java i would do > something like this: > int timeOut = 3000; > boolean status = InetAddress.getByName(host).isReachable(timeOut); > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
