Skip to content

Incorporate minor updates from the standard library#353

Open
djdv wants to merge 15 commits intospf13:masterfrom
djdv:std-updates
Open

Incorporate minor updates from the standard library#353
djdv wants to merge 15 commits intospf13:masterfrom
djdv:std-updates

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.

2 participants