Skip to content

Conversation

@m940867
Copy link
Contributor

@m940867 m940867 commented Dec 29, 2025

What does this PR do?

Add a new Eq() function to compare pointers.

https://github.com/upfluence/ecommerce-server/pull/309#discussion_r2643741436

What are the observable changes?

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Properly labeled

Additional Notes


Note

Add pointer equality helper

  • Introduces Eq[T comparable](a, b *T) bool to compare pointers by identity, handle nil, and fall back to dereferenced value equality
  • Extends ptr_test.go with TestEq covering ints, strings, and a struct type

Written by Cursor Bugbot for commit 19bf7cf. This will update automatically on new commits. Configure here.

@m940867 m940867 requested a review from a team as a code owner December 29, 2025 12:06
@m940867 m940867 requested review from pauloestrella1994 and xgoffin and removed request for a team December 29, 2025 12:07
@m940867 m940867 merged commit 7d5acec into master Dec 29, 2025
5 checks passed
@m940867 m940867 deleted the pointers/eq branch December 29, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants