How can I read more than one line in golang, console input.
reader := bufio.NewReader(os.Stdin)
fmt.Println("Enter Text:")
text, _ := reader.ReadString('
')
How I must change ReadString(???) to stop reading if the user hit: <kbd>ctrl</kbd>+<kbd>s</kbd>
The New Line (
) must remain a constituent of the input.
Is there some library/framework for that?
Thanks for every help.
Cheers