feat:增加测试用例

This commit is contained in:
songzhibin97
2021-09-15 18:42:17 +08:00
parent d80edb16df
commit 0f18854c40
5 changed files with 70 additions and 3 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ import (
//@param: str []byte
//@return: string
func MD5V(str []byte) string {
func MD5V(str []byte, b ...byte) string {
h := md5.New()
h.Write(str)
return hex.EncodeToString(h.Sum(nil))
return hex.EncodeToString(h.Sum(b))
}