Answers for "split string by length golang"

Go
1

strings split golang

s := strings.Split("a,b,c", ",")
fmt.Println(s)
// Output: [a b c]
Posted by: Guest on November-01-2021
0

strings split golang

s := strings.Fields(" a t b n")
fmt.Println(s)
// Output: [a b]
Posted by: Guest on November-01-2021

Browse Popular Code Answers by Language