1 Star 0 Fork 0

liujinsuo/tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
string.go 211 Bytes
一键复制 编辑 原始数据 按行查看 历史
liujinsuo 提交于 2年前 . DebugX
package tool
import "strings"
type strT struct {
}
func (s *strT) Left(str string, sub string) string {
pos := strings.Index(str, sub)
if pos > 0 {
return str[0:pos]
}
return ""
}
var String = &strT{}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/liujinsuo/tool.git
git@gitee.com:liujinsuo/tool.git
liujinsuo
tool
tool
537076f1d965

搜索帮助