go-fastping
go-fastping copied to clipboard
Pass the data with the message in case there is a payload
Allow the user to decide if they need the payload of the packet itself. This passes the data back to the user so that they can process it if desired.
This uses []uint8 type for a payload value but []byte is better. Indeed, byte is uint8 alias but according to https://godoc.org/golang.org/x/net/icmp#Echo, Data is defined as []byte so using []byte is less confusing.
Fixed @tatsushid — thanks for the feedback
Sorry for the late reply.
The code looks good! Thanks for fixing it. This code includes a little API change and it would break the code which uses this library so I will announce about it and merge later.
I wanted to follow up on this and see what your plans were regarding this?
Following up on this, will this be merged?