Add gob encoding of structs. Still very basic.

This commit is contained in:
2022-01-13 14:26:16 +10:30
parent f17df4ce88
commit f872453f16
4 changed files with 184 additions and 34 deletions

View File

@@ -3,9 +3,11 @@ package main
import (
"flag"
"fmt"
"log"
)
func main() {
log.SetFlags(log.Lshortfile)
port := flag.Int("p", 9000, "Port to run server/client on.")
isServer := flag.Bool("s", false, "Set if running the server.")
flag.Parse()