Qvault.io – Coding courses to launch your tech career I can’t begin to tell you how often I split strings in Go.

Go’s rich standard library makes it really easy to split a string. 99% of the time you need to split strings in Go, you’ll want the strings package’s strings.Split() function. The strings.SplitN() function takes three arguments: the string to be split, a separator, and the number of resulting strings in the slice.

Related Articles