Skip to content
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
Open

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

bradfitz opened this issue Nov 19, 2013 · 2 comments
Labels
GarbageCollector NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@bradfitz
Copy link
Contributor

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
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 1:

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

@rsc
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
@ALTree ALTree added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GarbageCollector NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

3 participants