Puzzle 5 Explanation: Raw Strings
Understand the functions of \t and \n.
We'll cover the following...
We'll cover the following...
Try it yourself
Try running the code below to see the result for yourself.
Press + to interact
Go (1.16.5)
package mainimport ("fmt")func main() {s := `a\tb`fmt.Println(s)}
Explanation
There are two different ways to represent string literals ...