Go string backticks

I didn’t realize I could use backticks for strings. Makes building a string with double quotes easier. A small but useful feature. Especially when I can’t see many circumstances where I need to use backticks in a string. Single quotes are for one character.

s := “This is a string”

s = `This is a “string” with double quotes using backticks`

s = `This is a ‘string’ with single quotes`

s = `This is Bill’s string`

Also you can do this…

func main() {
s:= This is a test
fmt.Println(s)
}func main() {
	s:= `This
	is
	a
	test`
	fmt.Println(s)
}