Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove custom 'min' function (prior to Go v1.21) #3922

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Conversation

joanlopez
Copy link
Contributor

@joanlopez joanlopez commented Aug 28, 2024

What?

It removes custom min and max functions.

Why?

Because after #3915, this is no longer needed, as these functions exist in stdlib since Go v1.21.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@joanlopez joanlopez requested a review from a team as a code owner August 28, 2024 12:56
@joanlopez joanlopez self-assigned this Aug 28, 2024
@joanlopez joanlopez added this to the v0.54.0 milestone Aug 28, 2024
@mstoykov
Copy link
Contributor

I think there is at least one more case of a max from #3900

Can you please go over them and check that all of them are removed now

@joanlopez
Copy link
Contributor Author

joanlopez commented Aug 28, 2024

I think there is at least one more case of a max from #3900

Can you please go over them and check that all of them are removed now

You are absolutely right, there were more - but apparently I'm super bad at searching on a codebase 😂 I promise I tried!

Copy link
Contributor

@olegbespalov olegbespalov left a comment

Choose a reason for hiding this comment

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

🚀

@mstoykov mstoykov added the breaking change for PRs that need to be mentioned in the breaking changes section of the release notes label Aug 28, 2024
@mstoykov
Copy link
Contributor

added breaking change due to us removing an exported function from lib.

@joanlopez joanlopez merged commit 2091e6d into master Aug 29, 2024
23 checks passed
@joanlopez joanlopez deleted the remove-custom-min branch August 29, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change for PRs that need to be mentioned in the breaking changes section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants