...

/

Puzzle 5 Explanation: Raw Strings

Puzzle 5 Explanation: Raw Strings

Understand the functions of \t and \n.

We'll cover the following...

Try it yourself

Try running the code below to see the result for yourself.

Press + to interact
package main
import (
"fmt"
)
func main() {
s := `a\tb`
fmt.Println(s)
}

Explanation

There are two different ways to represent string literals ...