code: func WriteFrame(w io.Writer, frame []byte) (int, error) {
  	count, err := writeFrameHeader(w, uint64(len(frame)))
  	if err != nil {
  		return count, err
  	}
  
  	amount, err := w.Write(frame)
  	count += amount
  	if err != nil {
  		return count, err
  	}
  
  	return count, nil
  }
docs: // WriteFrame writes a single frame to an io.Writer.