string1 := "\\n" // two characters, \ and an n string2 := "Jon 'Maddog' Orwant" // literal single quotes string3 := "Jon \"Maddog\" Orwant" // literal double quotes fmt.Println(string1) fmt.Println(string2) fmt.Println(string3) // There is no here-doc in Go. |