Get the App
SLTechnology News&Howtos  ›  Development  › 

How go uses `symbols to create multiline strings

Shulou Source: shulou.com Published: 2022-06-01 04:53:06 10月04日 Update

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!

Tags: Characters strings multilines symbols articles content not much code information address most more knowledge industry information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft macOS NVidia Linux vpn