summaryrefslogtreecommitdiff
path: root/tests/reserialize/main.go
blob: 101f3bfa0a2c2ffcd5ab0360bda00b8769cf091a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import (
	"github.com/dragonfireclient/mt"
	"os"
)

// WIP: test against the Go mt package
func main() {
	pkt, err := mt.DeserializePkt(os.Stdin, false)
	if err != nil {
		panic(err)
	}

	mt.SerializePkt(*pkt, os.Stdout, false)
}