diff options
| author | codecrafters-bot <hello@codecrafters.io> | 2024-05-30 01:39:13 +0000 |
|---|---|---|
| committer | codecrafters-bot <hello@codecrafters.io> | 2024-05-30 01:39:13 +0000 |
| commit | 8248740a7fb47c20862c4d18223a8f4d49b26d0c (patch) | |
| tree | 0dfa64f740d79092142e324adff4c584efbc6ca3 /cmd/myshell | |
| download | shell-go-8248740a7fb47c20862c4d18223a8f4d49b26d0c.tar.gz shell-go-8248740a7fb47c20862c4d18223a8f4d49b26d0c.zip | |
init [skip ci]
Diffstat (limited to 'cmd/myshell')
| -rw-r--r-- | cmd/myshell/main.go | 18 |
1 files changed, 18 insertions, 0 deletions
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') +} |