Skip to content

Comments

Apply go modernize across codebase#311

Merged
folbricht merged 1 commit intomasterfrom
modernize
Feb 14, 2026
Merged

Apply go modernize across codebase#311
folbricht merged 1 commit intomasterfrom
modernize

Conversation

@folbricht
Copy link
Owner

Summary

Run go modernize to apply idiomatic Go modernizations across 37 files:

  • interface{}any (15 occurrences)
  • for i := 0; i < n; i++for range n / for i := range n (17 loops)
  • if/else → min() builtin (chunker.go)
  • []byte(fmt.Sprintf(...))fmt.Appendf (tar_test.go)
  • strings.Split + range → strings.SplitSeq (cmd/desync/store.go)
  • Build tag cleanup: add //go:build or remove redundant // +build
  • Minor comment formatting fixes

Test plan

  • Verify go test ./... passes
  • Verify go build ./cmd/desync succeeds
  • CI passes on all platforms (ubuntu, windows, macOS)

🤖 Generated with Claude Code

Run 'go modernize' to apply idiomatic Go modernizations:

- interface{} → any
- for i := 0; i < n; i++ → for range n / for i := range n
- if/else → min() builtin
- []byte(fmt.Sprintf(...)) → fmt.Appendf
- strings.Split + range → strings.SplitSeq
- Build tag cleanup: add //go:build or remove redundant // +build
- Minor comment formatting fixes
@folbricht folbricht merged commit 854ebff into master Feb 14, 2026
6 checks passed
@folbricht folbricht deleted the modernize branch February 14, 2026 10:05
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.

1 participant