diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-10 15:53:15 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-10 15:53:15 +0100 |
commit | 6c875082474431a39596b1547b436a9bec1f5533 (patch) | |
tree | bafa770893e6a5a1daea8b57cc5a3f3574da3cb6 /tests/reserialize/main.go | |
download | mt_net-6c875082474431a39596b1547b436a9bec1f5533.tar.xz |
Initial commit
Diffstat (limited to 'tests/reserialize/main.go')
-rw-r--r-- | tests/reserialize/main.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/reserialize/main.go b/tests/reserialize/main.go new file mode 100644 index 0000000..101f3bf --- /dev/null +++ b/tests/reserialize/main.go @@ -0,0 +1,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) +} |