chuanshanjida

Results issues of chuanshanjida

# Description remove repetitive word in Cli.hs # Checklist - [ ] Commit sequence broadly makes sense and commits have useful messages - [ ] New tests are added if...

# PR Description Replace legacy sync/atomic function-based API (AddInt32, LoadInt32, etc.) with Go 1.19+ typed atomic types (atomic.Int32, atomic.Int64, etc.). This change: - Improves code readability by removing explicit address-of...

review me

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...

There is a [new function](https://pkg.go.dev/[email protected]#Backward) added in the go1.23 standard library, which can make the code more concise and easy to read. More info can see https://github.com/golang/go/issues/61899

## Why this should be merged Enables the modernize linter in .golangci.yml to enforce idiomatic modern. Go patterns, such as using built-in min/max, the slices/maps packages, and. other improvements introduced...

Modernize sync/atomic usage with typed atomic APIs Replace legacy sync/atomic function-based API (AddInt32, LoadInt32, etc.) with Go 1.19+ typed atomic types (atomic.Int32, atomic.Int64, etc.). This change: - Improves code readability...