Skip to content

Idiomatic Go modernization#741

Open
udf2457 wants to merge 4 commits into
theupdateframework:masterfrom
udf2457:any
Open

Idiomatic Go modernization#741
udf2457 wants to merge 4 commits into
theupdateframework:masterfrom
udf2457:any

Conversation

@udf2457

@udf2457 udf2457 commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

udf2457 added 3 commits June 13, 2026 15:57
Signed-off-by: udf2457 <udf2457@users.noreply.github.com>
Signed-off-by: udf2457 <udf2457@users.noreply.github.com>
Signed-off-by: udf2457 <udf2457@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 13, 2026 15:00
@udf2457
udf2457 requested a review from a team as a code owner June 13, 2026 15:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Modernizes small portions of the Go codebase by adopting newer Go idioms (any, range) without changing behavior.

Changes:

  • Replaced an index-based loop with a range loop in path pattern matching logic.
  • Switched interface{} to any in JSON unmarshalling and test utilities.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
metadata/metadata.go Uses for i := range ... for clearer iteration over path parts.
metadata/marshal.go Replaces interface{} with any in UnmarshalJSON assignments.
internal/testutils/simulator/repository_simulator.go Replaces map[string]interface{} with map[string]any in delegation metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@udf2457 udf2457 changed the title idiomatic Go modernization Idiomatic Go modernization Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants