whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
s := bufio.NewScanner(os.Stdin)
|
||||
for s.Scan() {
|
||||
fmt.Printf("read %q\n", s.Text())
|
||||
}
|
||||
os.Stdout.Close()
|
||||
}
|
||||
Reference in New Issue
Block a user