func (d Echo) Write(w io.Writer) error {
	if err := binary.Write(w, binary.BigEndian, &d.Header); err != nil {
		return err
	}
	_, err := w.Write(d.Payload)
	return err
}
// Write the echo request/reply data to the writer.
Write the echo request/reply data to the writer.
// Write the echo request / reply data to the writer .
func (d Echo) Write(w io.Writer) error {
	if err := binary.Write(w, binary.BigEndian, &d.Header); err != nil {
		return err
	}
	_, err := w.Write(d.Payload)
	return err
}
func ( d Echo ) Write ( w io . Writer ) error { if err := binary . Write ( w , binary . BigEndian , & d . Header ) ; err != nil { return err } _ , err := w . Write ( d . Payload ) return err }
Write the echo request/reply data to the writer.
Write the echo request / reply data to the writer .