I have a string which ends with a carriage return:
str := "my data"
If I try to print that string, using:
fmt.Println(str)
all it shows is an empty line. How do I make it output full string, like "my data", without trimming the last character (carriage return)?
It was caused by Emacs terminal, which discarded data printed before carriage return.
Using gnome-terminal fixed it. Thanks for your help @peter