main.go 216 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 package main import ( "bufio" "fmt" "os" ) func main() { var input string sc := bufio.NewScanner(os.Stdin) for { fmt.Print("input: ") sc.Scan() input = sc.Text() fmt.Printf("output: %s\n", input) } }