📅  最后修改于: 2022-03-11 14:57:43.030000             🧑  作者: Mango
代码示例1
scanner := bufio.NewScanner(os.Stdin)
if scanner.Scan() {
line := scanner.Text()
fmt.Printf("Input was: %q\n", line)
}