Go是否具有类似于python多行字符串的内容:
"""line 1
line 2
line 3"""
如果不是,那么写跨多行字符串的首选方法是什么?
转载于:https://stackoverflow.com/questions/7933460/how-do-you-write-multiline-strings-in-go
Go是否具有类似于python多行字符串的内容:
"""line 1
line 2
line 3"""
如果不是,那么写跨多行字符串的首选方法是什么?
转载于:https://stackoverflow.com/questions/7933460/how-do-you-write-multiline-strings-in-go
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`