From bab5e32bd62071304ec1cd865859e685bf6d9b23 Mon Sep 17 00:00:00 2001 From: codecrafters-bot Date: Sun, 2 Jun 2024 20:04:15 +0000 Subject: init [skip ci] --- app/main.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/main.go (limited to 'app') diff --git a/app/main.go b/app/main.go new file mode 100644 index 0000000..d1c4195 --- /dev/null +++ b/app/main.go @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + // Uncomment this block to pass the first stage! + // "os" + // "os/exec" +) + +// Usage: your_docker.sh run ... +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! + // + // command := os.Args[3] + // args := os.Args[4:len(os.Args)] + // + // cmd := exec.Command(command, args...) + // output, err := cmd.Output() + // if err != nil { + // fmt.Printf("Err: %v", err) + // os.Exit(1) + // } + // + // fmt.Println(string(output)) +} -- cgit v1.2.3