How to create multiline string in GO
In this tutorial, we are going to learn about how to create the multiline string in Go language.
To create a multiline string, we can use the backticks (``)
in Go.
Here is an example:
package main
import "fmt"
func main() {
multiline := `This is a
multiline string
you can write
many lines`
fmt.Println(multiline)
}
Output
This is a
multiline string
you can write
many lines