by @saigowthamr

How to create a multiline string in GO

Home » go » How to create a multiline string in GO

To create a multiline string in GO, we can use backticks (``) instead of double quotes.

Here is an example:

`This is a
multiline string
you can write
many lines`

Output

This is a
multiline string
you can write
many lines

Best Web Development courses