Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
strings: Split / SplitN don't let you supply a buffer #6792
I recently found myself forking strings.SplitN to take a destination buffer, to avoid the slice allocation. I called it AppendSplitN, with append semantics. (like the Append funcs in http://golang.org/pkg/strconv/) Maybe worth putting in the strings package, although I expect the usual reservations.