替换指定字符
(s string, oldStr, newStr string)
| 1368 | |
| 1369 | // 替换指定字符 |
| 1370 | func ReplaceSpecifiedString(s string, oldStr, newStr string) string { |
| 1371 | return string(exbytes.Replace([]byte(s), []byte(oldStr), []byte(newStr), -1)) |
| 1372 | } |
| 1373 | |
| 1374 | // 字符串拼接 |
| 1375 | func StringsBuilder(str ...string) string { |