This commit is contained in:
astaxie
2014-08-31 00:29:52 +08:00
parent ecf2c0232c
commit efaed9e188

View File

@@ -65,7 +65,7 @@
- func Trim(s string, cutset string) string - func Trim(s string, cutset string) string
在s字符串去除cutset指定的字符串 在s字符串的头部和尾部去除cutset指定的字符串
fmt.Printf("[%q]", strings.Trim(" !!! Achtung !!! ", "! ")) fmt.Printf("[%q]", strings.Trim(" !!! Achtung !!! ", "! "))
//Output:["Achtung"] //Output:["Achtung"]