Skip to content

refactor: use the built-in max/min to simplify the code#50062

Open
jinjiadu wants to merge 1 commit intomoby:masterfrom
jinjiadu:master
Open

refactor: use the built-in max/min to simplify the code#50062
jinjiadu wants to merge 1 commit intomoby:masterfrom
jinjiadu:master

Conversation

@jinjiadu
Copy link
Contributor

@jinjiadu jinjiadu commented May 24, 2025

- What I did

In Go 1.21, the standard library includes built-in max/min function, which can greatly simplify the code.

- How I did it

- How to verify it

- Human readable description for the release notes

use the built-in max/min to simplify the code

- A picture of a cute animal (not mandatory but encouraged)

947bbc698980a9a13dff93606efc94de

Signed-off-by: jinjiadu <jinjiadu@aliyun.com>
@jinjiadu
Copy link
Contributor Author

@thaJeztah @akerouanton Hi, Could you please review this PR when you have time? Thanks!

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