Go and multiline strings

Using back ticks you can have multiline strings:

package main

import "fmt"

func main() {
   goLongStrings := `
   i like these
   long strings
   in go \m/
   `
   fmt.Println(goLongStrings)
}
Share Comments
comments powered by Disqus