How you can write multiline strings in go?



How you can write multiline strings in go?..

Answer / Bhup Singh

"In Go, you can define multiline strings using backquotes (`). A multiline string will span multiple lines and all text between the backquotes is considered part of the string. To include a backquote within a multiline string, simply escape it by doubling it: "`."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

What are nil pointers?

1 Answers  


What is the syntax for for-loop in go?

1 Answers  


Explain what gopath environment variable is?

1 Answers  


What is type assertion in go?

1 Answers  


What is default value of a global and local variable in go?

1 Answers  


What is go?

1 Answers  


How arrays in go works differently then c ?

1 Answers  


What are the different methods in go programming language?

1 Answers  


Explain the syntax for 'for' loop.

1 Answers  


What is range keyword in go?

1 Answers  


What are the advantages of go?

1 Answers  


What a modular programming language is?

1 Answers  


Categories