mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 20:11:26 +08:00
@@ -22,7 +22,7 @@ Go 支持以下 2 种形式的字面值:
|
||||
|
||||
`This is a raw string \n` 中的 `\n\` 会被原样输出。
|
||||
|
||||
和 C/C++ 一样,Go 中的字符串是根据长度限定,而非特殊字符。
|
||||
和 C/C++不一样,Go 中的字符串是根据长度限定,而非特殊字符`\0`。
|
||||
|
||||
`string` 类型的零值为长度为零的字符串,即空字符串 `""`。
|
||||
|
||||
|
Reference in New Issue
Block a user