goping icon indicating copy to clipboard operation
goping copied to clipboard

Question: Use goping as library

Open hesingh opened this issue 6 years ago • 0 comments

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.

hesingh avatar Sep 29 '18 18:09 hesingh