You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
seankhliao
changed the title
strings: Split / SplitN don't let you supply a buffer
proposal: strings: AppendSplitN to reuse destination slice buffer
Dec 1, 2024
gopherbot
removed
the
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
label
Dec 1, 2024
The text was updated successfully, but these errors were encountered: