golang can buffer be readed after flush code example Example: golang read line package main import "fmt" func main(){ x := string fmt.Scanln(&x) }