How go uses `symbols to create multiline strings
Editor to share with you how go uses `symbols to create multi-line strings. I believe most people don't know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it.
Use the `symbol to create a multiline string
This is quite simple. If you want to define a string containing multiple lines of address information in your code, you need to use the character `, as shown below:
Package mainimport "fmt" func main () {str: = `Mr. Smith123 Something St Some City, CA 94043` fmt.Println (str)} above is all the content of the article "how to use `symbols to create multiple-line strings in go". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!