Skip to content

cmd/compile: use strings.Builder #23828

@josharian

Description

@josharian

The main challenge here is ensuring everything still works when built with 1.4.

Probably build tag protected files, with something like

type buffer struct {
bytes.Buffer
}

for pre-1.10 and

type buffer = strings.Builder

for 1.10+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions