Skip to content

bindings/go: Add common APIs for Range and Position#248

Merged
varungandhi-src merged 5 commits intomainfrom
vg/range-apis
Jun 11, 2024
Merged

bindings/go: Add common APIs for Range and Position#248
varungandhi-src merged 5 commits intomainfrom
vg/range-apis

Conversation

@varungandhi-src
Copy link
Contributor

The Range type in this package is 128-bits, whereas some Range types
in the Sourcegraph packages are 256-bits. Additionally, some of the APIs
would previously work using *Range instead of just Range.

This PR fixes the pointer-based APIs and adds commonly used APIs
for Range and Position so we don't have to keep re-implementing them.

We also add documentation that ranges are half-open, not closed.

Test plan

Added new tests

varungandhi-src and others added 2 commits June 11, 2024 12:34
@varungandhi-src varungandhi-src merged commit 4178e59 into main Jun 11, 2024
@varungandhi-src varungandhi-src deleted the vg/range-apis branch June 11, 2024 11:58
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.

2 participants