flow-cli
flow-cli copied to clipboard
refactor: use strings.builder
Closes #???
Description
The modernize has added an analyzer for using strings.Builder for string construction. strings.Builder has fewer memory allocations and better performance.
More info: https://github.com/golang/go/issues/75190
Inspired by https://github.com/onflow/flow-cli/pull/2036
For contributor use:
- [x] Targeted PR against
masterbranch - [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
- [x] Code follows the standards mentioned here
- [ ] Updated relevant documentation
- [x] Re-reviewed
Files changedin the Github PR explorer - [ ] Added appropriate labels
@chasefleming @jribbink @janezpodhostnik Hi, Could you please review this PR at your convenience? Thank you very much.
I made the same observation, but I saw that it has already been submitted. Good fixes.
@chasefleming @jribbink @janezpodhostnik friendly ping