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

simple: check unneeded []byte conversion for strings in append #770

Open
martisch opened this issue Jun 3, 2020 · 0 comments
Open

simple: check unneeded []byte conversion for strings in append #770

martisch opened this issue Jun 3, 2020 · 0 comments

Comments

@martisch
Copy link

martisch commented Jun 3, 2020

s = append(s, []byte("foo")...)

can just be written as

s = append(s,  "foo"...)
@martisch martisch added the needs-triage Newly filed issue that needs triage label Jun 3, 2020
@dominikh dominikh changed the title check unneeded []byte conversion for strings in append simple: check unneeded []byte conversion for strings in append Jun 3, 2020
@dominikh dominikh added new-check and removed needs-triage Newly filed issue that needs triage labels Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants