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

Comments

@bradfitz
Copy link
Member

@bradfitz 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 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 rsc commented Dec 4, 2013

Comment 2:

Labels changed: added repo-main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.