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

Neater string-to-byteslice conversions #544

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Neater string-to-byteslice conversions #544

merged 1 commit into from
Jul 19, 2024

Conversation

bboreham
Copy link
Contributor

@bboreham bboreham commented Jul 5, 2024

unsafe.Slice and unsafe.StringData were added in Go 1.20

yoloBuf previously did not fill in the cap member, which didn't matter in the way it was used but was potentially risky in future.

unsafe.Slice and StringData were added in Go 1.20

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@bboreham bboreham merged commit c33dbbe into main Jul 19, 2024
6 checks passed
@bboreham bboreham deleted the neater-unsafe branch July 19, 2024 10:32
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