Skip to content

chore: modernize Go code - #55

Merged
unknwon merged 2 commits into
mainfrom
chore/interface-to-any
Nov 11, 2026
Merged

unknwon merged 2 commits into
mainfrom
chore/interface-to-any

Conversation

@unknwon

@unknwon unknwon commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Describe the pull request

Modernizes the Go code with the go fix modernizers from Go 1.27. Only rewrites that the module's go version supports were applied. No behavior changes.

  • Replaces interface{} with any.
  • Applies the other modernizers that matched, such as for range n, reflect.TypeFor, slices/maps helpers, strings.SplitSeq, atomic.Int32, and new(expr), where applicable.
  • Skips omitzero, because it changes JSON output.

Link to the issue: n/a

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

AI usage

Written by Amp (Claude Opus 5.5) as directed by the author.

@unknwon unknwon changed the title chore: replace interface{} with any chore: modernize Go code Nov 11, 2026
@unknwon
unknwon merged commit 9f76ff6 into main Nov 11, 2026
4 checks passed
@unknwon
unknwon deleted the chore/interface-to-any branch November 11, 2026 03:03
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