I'm trying to write a .xml file in golang and when I try to write to a newline and use \n, it literally prints \n as part of the string.
How can I force a new line to be printed in the file?
Here is what my code looks like so far:
fmt.Fprint(file, "<card>\n")
fmt.Fprintf(file, `<title>title</title>\n`)
and that is printing <card>\n<title>title</title>\n