🧹 aws: modernize Go syntax (any, slices.Chunk, stdlib slices)#6889
Merged
🧹 aws: modernize Go syntax (any, slices.Chunk, stdlib slices)#6889
Conversation
Contributor
…lices)
- Replace `interface{}` with `any` across 12 files (118 occurrences)
- Convert 5 manual batch loops to `slices.Chunk` (route53, guardduty, opensearch, athena, macie)
- Replace `golang.org/x/exp/slices` with stdlib `slices` in timestream
- Remove dead `remove()` function from aws.go
- Drop `golang.org/x/exp` dependency from go.mod
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove 3x unnecessary `region := region` in networkfirewall (Go 1.22+) - Use `maps.Copy` instead of manual map copy loop in discovery_test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
987771b to
d2d1ab3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
interface{}withanyacross 12 resource files (118 occurrences)slices.Chunk(route53, guardduty, opensearch, athena, macie)golang.org/x/exp/sliceswith stdlibslicesin timestreamremove()function from aws.gogolang.org/x/expdependency from go.modregion := regionloop variable captures in networkfirewall (unnecessary since Go 1.22)maps.Copyinstead of manual map copy loop in discovery_test🤖 Generated with Claude Code