code: func (cc *clientConn) writeEOF(serverStatus uint16) error {
  	data := cc.alloc.AllocWithLen(4, 9)
  
  	data = append(data, mysql.EOFHeader)
  	if cc.capability&mysql.ClientProtocol41 > 0 {
  		data = dumpUint16(data, cc.ctx.WarningCount())
  		status := cc.ctx.Status()
  		status |= serverStatus
  		data = dumpUint16(data, status)
  	}
  
  	err := cc.writePacket(data)
  	return err
  }
docs: // writeEOF writes an EOF packet.
  // Note this function won't flush the stream because maybe there are more
  // packets following it.
  // serverStatus, a flag bit represents server information
  // in the packet.