Skip to content

refactor: use slices.Equal to simplify code - #2211

Merged
abhinavdangeti merged 1 commit into
blevesearch:masterfrom
houpo-bob:master
Jul 30, 2025
Merged

refactor: use slices.Equal to simplify code#2211
abhinavdangeti merged 1 commit into
blevesearch:masterfrom
houpo-bob:master

Conversation

@houpo-bob

Copy link
Copy Markdown
Contributor

In the Go 1.21 standard library, a new function has been introduced that enhances code conciseness and readability. It can be find here.

@abhinavdangeti abhinavdangeti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this contribution @houpo-bob .

However it seems this change is incomplete. There're references to ArrayPositions' Equals method.

Comment thread search/search.go
Signed-off-by: houpo-bob <houpocun@outlook.com>
@houpo-bob

Copy link
Copy Markdown
Contributor Author

Modified. Please review it again. Thanks😄

@abhinavdangeti
abhinavdangeti merged commit 33324ac into blevesearch:master Jul 30, 2025
9 checks passed
@abhinavdangeti abhinavdangeti modified the milestones: v2.5.4, v2.5.3 Jul 31, 2025
CascadingRadium pushed a commit that referenced this pull request Aug 21, 2025
In the Go 1.21 standard library, a new function has been introduced that
enhances code conciseness and readability. It can be find
[here](https://pkg.go.dev/slices@go1.21.1#Equal).

Signed-off-by: houpo-bob <houpocun@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.

3 participants