We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What you think to rewrite parseUUID to avoid allocations if used uuid with "-" ?
func parseUUID(uuid string) ([]byte, error) { uuid = strings.ReplaceAll(uuid, "-", "") if len(uuid) != 32 { return nil, errors.New("invalid UUID length") } return hex.DecodeString(uuid) }
The text was updated successfully, but these errors were encountered:
parseUUID
Hey, @vtolstov . Appreciate you taking the time to suggest this improvement. It makes the library better for everyone.
Sorry, it took a while for me to respond, as I was out on vacation. This (#12) should probably address your recommendation. Please review.
Sorry, something went wrong.
enhance #10 : avoid allocations on parseUUID
4ccd19c
thanks
ashwingopalsamy
No branches or pull requests
What you think to rewrite parseUUID to avoid allocations if used uuid with "-" ?
The text was updated successfully, but these errors were encountered: