Skip to content

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

Open
moveyield wants to merge 1 commit intoonflow:masterfrom
moveyield:master
Open

refactor: use the built-in max/min to simplify the code#2279
moveyield wants to merge 1 commit intoonflow:masterfrom
moveyield:master

Conversation

@moveyield
Copy link

@moveyield moveyield commented Feb 15, 2026

Closes #???

Description

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


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

Signed-off-by: moveyield <moveyield@outlook.com>
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