Skip to content

proposal: strings: AppendSplitN to reuse destination slice buffer #6792

Open
@bradfitz

Description

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions