优化toAnySlice

This commit is contained in:
2024-01-23 10:42:03 +08:00
parent 448b472c53
commit 5a53679400
3 changed files with 39 additions and 12 deletions

View File

@ -23,3 +23,9 @@ func TestString_ToFloat32(t *testing.T) {
fmt.Println(str.ToInt())
fmt.Println(str.ToUint())
}
func TestString_ToAnySlice(t *testing.T) {
str := "1,2,3"
r := String(str).ToAnySlice(",")
fmt.Println(r)
}