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)?