New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strings: Split / SplitN don't let you supply a buffer #6792

Open
bradfitz opened this Issue Nov 19, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@bradfitz
Copy link
Member

bradfitz commented Nov 19, 2013

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.
@rsc

This comment has been minimized.

Copy link
Contributor

rsc commented Dec 4, 2013

Comment 1:

Labels changed: added release-none, removed go1.3maybe.

@rsc

This comment has been minimized.

Copy link
Contributor

rsc commented Dec 4, 2013

Comment 2:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

@rsc rsc removed release-none labels Apr 10, 2015

@ALTree ALTree added the NeedsDecision label Oct 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment