【Golang 标准库】package strings
删除字符串的一部分
1 | strings.Replace("https://www.baidu.com/query", "https://www.baidu.com/", "", 1) |
相关链接
https://books.studygolang.com/The-Golang-Standard-Library-by-Example/chapter02/02.1.html
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Robby!
评论

