Raw strings
examples/raw-strings/raw_strings.go
package main import "fmt" func main() { x := "a\nb" y := `a\nb` fmt.Println(x) fmt.Println("-------") fmt.Println(y) }
a b ------- a\nb
package main import "fmt" func main() { x := "a\nb" y := `a\nb` fmt.Println(x) fmt.Println("-------") fmt.Println(y) }
a b ------- a\nb