How do you write multiline strings in Go?

`line 1
line 2
line 3`

We can use raw string literals, where the string is delimited by backticks instead of double quotes.

Subscribe for
weekly updates

newsletter