Skip to content

Instantly share code, notes, and snippets.

@paulocoutinhox
Created August 5, 2016 17:49
Show Gist options
  • Save paulocoutinhox/1d31f0a80e9ddc6c193656bd1e9ec7ba to your computer and use it in GitHub Desktop.
Save paulocoutinhox/1d31f0a80e9ddc6c193656bd1e9ec7ba to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"bufio"
"os"
)
func main() {
reader := bufio.NewReader(os.Stdin)
fmt.Println("Simple Shell")
fmt.Println("---------------------")
for {
fmt.Print("-> ")
text, _ := reader.ReadString('\n')
fmt.Println(text)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment