天天看点

【golang】字符串分隔

1、说明

xxx

2、示例代码

func GetSplitArr(oldStr string) []string {
	return strings.Split(oldStr, ",")
}