nl2br

nl2br

[code]
func Nl2br(str string) string {
	return strings.Replace(str, "\n", "<br />", -1)
}
[/code]