From 8248740a7fb47c20862c4d18223a8f4d49b26d0c Mon Sep 17 00:00:00 2001 From: codecrafters-bot Date: Thu, 30 May 2024 01:39:13 +0000 Subject: init [skip ci] --- cmd/myshell/main.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cmd/myshell/main.go (limited to 'cmd') diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go new file mode 100644 index 0000000..6c65d9c --- /dev/null +++ b/cmd/myshell/main.go @@ -0,0 +1,18 @@ +package main + +import ( + "bufio" + "fmt" + "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 + // fmt.Fprint(os.Stdout, "$ ") + + // Wait for user input + bufio.NewReader(os.Stdin).ReadString('\n') +} -- cgit v1.2.3