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

MD5 supports []type input parameters #114

Closed
J404J opened this issue Jun 27, 2023 · 5 comments
Closed

MD5 supports []type input parameters #114

J404J opened this issue Jun 27, 2023 · 5 comments

Comments

@J404J
Copy link

J404J commented Jun 27, 2023

Computing MD5 supports []type input parameters to reduce the cost of string copying.

@duke-git
Copy link
Owner

@el404le you mean support following function?

func Md5Byte(b []byte) string {
	h := md5.New()
	h.Write(b)
	return hex.EncodeToString(h.Sum(nil))
}

@J404J
Copy link
Author

J404J commented Jun 28, 2023

yes!

@duke-git
Copy link
Owner

OK,will add it to next release.

@J404J
Copy link
Author

J404J commented Jun 29, 2023

thank you so much!

@duke-git
Copy link
Owner

duke-git commented Jul 3, 2023

has add Md5Byte to v2.2.3.

@duke-git duke-git closed this as completed Jul 3, 2023
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

No branches or pull requests

2 participants