func UnPackEOF(data []byte) (*EOF, error) {
	var err error
	e := &EOF{}
	buf := common.ReadBuffer(data)
	if e.Header, err = buf.ReadU8(); err != nil {
		return nil, sqldb.NewSQLErrorf(sqldb.ER_MALFORMED_PACKET, "invalid eof packet header: %v", data)
	}
	if e.Header != EOF_PACKET {
		return nil, sqldb.NewSQLErrorf(sqldb.ER_MALFORMED_PACKET, "invalid oeof packet header: %v", e.Header)
	}
	if e.Warnings, err = buf.ReadU16(); err != nil {
		return nil, sqldb.NewSQLErrorf(sqldb.ER_MALFORMED_PACKET, "invalid eof packet warnings: %v", data)
	}
	if e.StatusFlags, err = buf.ReadU16(); err != nil {
		return nil, sqldb.NewSQLErrorf(sqldb.ER_MALFORMED_PACKET, "invalid eof packet statusflags: %v", data)
	}
	return e, nil
}
UnPackEOF used to unpack the EOF packet.
https://dev.mysql.com/doc/internals/en/packet-EOF_Packet.html
This method unsed.
package proto
import (
	"github.com/xelabs/go-mysqlstack/sqldb"
	"github.com/xelabs/go-mysqlstack/sqlparser/depends/common"
)
const (
	EOF_PACKET byte = 0xfe
)
type EOF struct {
	Header      byte  
	Warnings    uint16
	StatusFlags uint16
}