Skip to content

Conversation

@russcoss
Copy link

There is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.

Signed-off-by: russcoss <russcoss@outlook.com>
@tiero tiero requested a review from Copilot September 29, 2025 10:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the merge function to use Go 1.21's new maps.Copy function for cleaner and more idiomatic map copying operations.

  • Imports the maps package from Go's standard library
  • Replaces manual key-value iteration with maps.Copy function
  • Renames function parameter to avoid naming conflict with imported package

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@russcoss
Copy link
Author

@louisinger @tiero Hi, If there's anything need I to do, please feel free to let me know.

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