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

V2 API using Go 1.23 iterators #4

Merged
merged 6 commits into from
Aug 28, 2024
Merged

V2 API using Go 1.23 iterators #4

merged 6 commits into from
Aug 28, 2024

Conversation

bobg
Copy link
Owner

@bobg bobg commented Aug 28, 2024

This PR updates hashsplit to V2 of the API.

This is a very different API from V1, and dramatically simpler. It is designed around the range-over-function feature introduced in Go 1.23, a.k.a. iterators.

API changes aside, the hashsplit boundaries and hashsplit-tree shapes computed by this module are the same as before.

@bobg bobg changed the title V2 API V2 API using Go 1.23 iterators Aug 28, 2024
Copy link

Modver result

This report was generated by Modver,
a Go package and command that helps you obey semantic versioning rules in your Go module.

This PR requires an increase in your module’s major version number.
If the new major version number is 2 or greater,
you must also add or update the version suffix
on the module path defined in your go.mod file.
See the Go Modules Reference for more info.

no new version of package github.com/bobg/hashsplit
  Major

@bobg bobg marked this pull request as ready for review August 28, 2024 14:09
@bobg bobg merged commit a2918d6 into master Aug 28, 2024
1 check passed
@bobg bobg deleted the bobg/v2 branch August 28, 2024 14:14
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