Readline() looks like cleaning up the last line when it does not include a \n at the end.
$ go build
$ ./rltest
"This line will be cleaned up after 10 seconds..." will be printed but cleaned up after 10 seconds.
Readline() looks like cleaning up the last line when it does not include a \n at the end.
$ go build
$ ./rltest
"This line will be cleaned up after 10 seconds..." will be printed but cleaned up after 10 seconds.