From 8630cc7003942c3692184f3d1a3ec36a0b7e3df7 Mon Sep 17 00:00:00 2001 From: codecrafters-bot Date: Mon, 3 Jun 2024 15:28:12 +0000 Subject: init [skip ci] --- app/server.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/server.go (limited to 'app') diff --git a/app/server.go b/app/server.go new file mode 100644 index 0000000..59e20bf --- /dev/null +++ b/app/server.go @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + // Uncomment this block to pass the first stage + // "net" + // "os" +) + +func main() { + // You can use print statements as follows for debugging, they'll be visible when running tests. + fmt.Println("Logs from your program will appear here!") + + // Uncomment this block to pass the first stage + // + // l, err := net.Listen("tcp", "0.0.0.0:4221") + // if err != nil { + // fmt.Println("Failed to bind to port 4221") + // os.Exit(1) + // } + // + // _, err = l.Accept() + // if err != nil { + // fmt.Println("Error accepting connection: ", err.Error()) + // os.Exit(1) + // } +} -- cgit v1.2.3