Created
August 5, 2016 17:49
-
-
Save paulocoutinhox/1d31f0a80e9ddc6c193656bd1e9ec7ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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