golang 字符串/string
Contents
字符串截取
|
|
字符串比较
|
|
Compare函数,区分大小写,比自建方法"=="的速度要快
测试字符串是否为空
|
|
字符串连接
|
|
格式化 补0
|
|
#substring
str := “hello world”
fmt.Print(str[0:5])
运行的时候将会输出
hello
#split
strings.Split
http://www.cnblogs.com/modprobe/p/4302681.html
<a href="https://www.crifan.com/go_language_string_compare_equal/">【已解决】go语言中的字符串的比较:相等</a>
https://www.crifan.com/go_language_string_compare_equal/embed/#?secret=u61L06fdZP
http://blog.csdn.net/oqqyuan1234567890/article/details/59110219
Author w1100n
LastMod 2017-02-17