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

Incorporate minor updates from the standard library #353

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

djdv
Copy link

@djdv djdv commented Jun 27, 2022

While reading the source for this pkg, I noticed the usage of bytes.Buffer in places where Go 1.10's strings.Builder could be used instead. (It's intended for this and is marginally more performant by avoiding some copies internally)

While migrating over, I found a handful of other small linting changes that seem acceptable.
All that is included here, but anything can be dropped if it's not desired.

I don't expect this to change any of observable behavior and the tests pass, but who knows.

>go test .\...
ok      github.com/spf13/pflag  0.041s

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.

None yet

2 participants