According to the language specification, you can use a raw string literal, where the string is delimited by backticks instead of double quotes.
`line 1
line 2
line 3`
More Related Contents:
- How to compare strings in golang? [closed]
- Format a Go string without printing?
- Call functions with special prefix/suffix
- How to efficiently concatenate strings in go
- How to generate a random string of a fixed length in Go?
- Reading a file line by line in Go
- Split large string
- How to convert an int value to string in Go?
- Convert string to integer type in Go?
- []byte(string) vs []byte(*string)
- How can I read a whole file into a string variable
- Convert time.Time to string
- Convert slice of string to slice of pointer to string
- How to get the number of characters in a string
- How do I represent an Optional String in Go?
- Does conversion between alias types in Go create copies?
- What’s wrong with Groovy multi-line String?
- Parse usable Street Address, City, State, Zip from a string [closed]
- “The argument type ‘String?’ can’t be assigned to the parameter type ‘String'” when using stdin.readLineSync()
- In Bash, how can I check if a string begins with some value?
- Making a string concatenation operator in R
- Bash: Split string into character array
- Replacing characters in Ant property
- How do I convert a Vec to Vec?
- How do I concatenate strings in Swift?
- Is there an owned version of String::chars?
- How to split a string in Haskell?
- Repeat and concatenate a string N times
- scala string.split does not work
- Flutter/Dart: Convert HEX color string to Color?