I'm using Gomail to grab data from a form and email it to myself. If I wanted to get the users full name, this is what I would use:
m.SetBody("text/html", fmt.Sprintf("<b>Full Name</b>: %s", msg.completeName))
It something like this in the email:
Full Name: John Michael Smith
Now if I wanted to add a message field to the code
m.SetBody("text/html", fmt.Sprintf("<b>Full Name</b>: %s", msg.completeName, "<br> <b>Message</b> %s", msg.Content))
It outputs this:
Full Name: John Michael Smith%!(EXTRA string=
Message: %s, string=Hi there!.)
I want it to look like this:
Full Name: John Michael Smith
Message: Hi there!