What is the most portable/cross-platform way to represent a newline in go/golang?
I got curious about this so decided to see what exactly is done by fmt.Println. http://golang.org/src/pkg/fmt/print.go If you scroll to the very bottom, you’ll see an if addnewline where \n is always used. I can’t hardly speak for if this is the most “cross-platform” way of doing it, and go was originally tied to linux … Read more