Skip to content

Use strings.Builder instead of bytes.Buffer#4

Open
victormn wants to merge 1 commit intoramalho:masterfrom
victormn:master
Open

Use strings.Builder instead of bytes.Buffer#4
victormn wants to merge 1 commit intoramalho:masterfrom
victormn:master

Conversation

@victormn
Copy link

@victormn victormn commented Oct 2, 2018

Since version 1.10, the language supports strings.Builder. This builder is more optimized than bytes.Buffer (https://medium.com/@thuc/8-notes-about-strings-builder-in-golang-65260daae6e9). In addition, the packge bytes was only used in that part of the code, reducing an import after this commit.

Since version 1.10, the language supports strings.Builder. This builder is more optimized than bytes.Buffer (https://medium.com/@thuc/8-notes-about-strings-builder-in-golang-65260daae6e9). In addition, the packge bytes was only used in that part of the code, reducing an import after this commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant