How to create multiline string in Go

1 Answer

0 votes
package main

import "fmt"

func main() {
   str := `The
multiline
string`


    fmt.Printf("%s", str)
}




/*
run:

The
multiline
string

*/

 



answered Jun 7, 2021 by avibootz
...