Multiline Strings

Python

  1. print """This is
  2. a multi-line string.
  3. """
  4.  
  5. print (
  6. "O'word "
  7. 'Another "word" '
  8. "Last word."
  9. )

Go

  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6. fmt.Println(`This is
  7. a multi-line string.
  8. `)
  9. fmt.Println(
  10. "O'word " +
  11. "Another \"word\" " +
  12. "Last word.")
  13. }