goping
goping copied to clipboard
Question: Use goping as library
Thanks for developing this goping code - it's great. I am using it in another golang program and have changed func API's to return an error. In regards to the specific line of code below:
go ping(config, place.Address, place.Name, LATENCY_PATTERN)
I have changed the API of 'func ping' to return error. My obvious question is how to I check the error returned from 'ping' given the above line of code?
thanks.