Skip to content

字符串类型处重复语句删除 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@
- 从逻辑上说,一个字符串值表示一段文本。 在内存中,一个字符串存储为一个字节 (byte)序列。
- Go语言中可以使用反引号或者双引号来定义字符串。反引号表示原生的字符串,不进行转义。
- Go语言中的string类型是一种值类型,存储的字符串是不可变的,如果要修改string内容需要将string转换为[]byte或[]rune,并且修改后的string内容是重新分配的。
- Go语言中的string类型是一种值类型,存储的字符串是不可变的,如果要修改string内容需要将string转换为[]byte或[]rune,并且修改后的string内容是重新分配的。
- 字符串是字节的定长数组。字符串的零值是为长度为零的字符串,即空字符串 ""。
- 一般的比较运算符(==、!=、<、<=、>=、>)通过在内存中按字节比较来实现字符串的对比。可以通过函数 len() 来获取字符串所占的字节长度,例如:len(str)。
- 在Go中,字符串值是UTF-8编码的, 甚至所有的Go源代码都必须是UTF-8编码的。
Expand Down Expand Up @@ -3796,4 +3795,4 @@
[![Forkers @LearnGolang/365Golang](https://reporoster.com/forks/LearnGolang/365Golang)](https://github.com/LearnGolang/365Golang/network/members)


[![Stargazers over time](https://starchart.cc/LearnGolang/365Golang.svg)](https://starchart.cc/LearnGolang/365Golang)
[![Stargazers over time](https://starchart.cc/LearnGolang/365Golang.svg)](https://starchart.cc/LearnGolang/365Golang)