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

Add go generics #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

quamejnr
Copy link
Contributor

Description

This MR adds go generics to the code to add a layer of type safety. Maps can now constrain their keys to receiving only comparable values avoiding errors

quamejnr added 4 commits July 25, 2024 22:25
## Description
This MR adds benchmarks to this package using golang's benchmarking
tool, making it easier to compare and contrast the differences in speed.
This replaces the benchmarks in measurements.go as it provides a cleaner
output.
## Description
This MR makes use of go generics which provides a level of error
checking since we can now put constraints on our interfaces. Example, we
can limit our map keys to comparable values.
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