윤준석

ADD: implements exit function

Showing 1 changed file with 9 additions and 0 deletions
......@@ -13,6 +13,15 @@ func main() {
fmt.Print("input: ")
sc.Scan()
input = sc.Text()
exit(input)
fmt.Printf("output: %s\n", input)
}
}
func exit(input string) {
if input == "exit" {
os.Exit(0)
}
}
\ No newline at end of file
......