doc: add go playground demo

This commit is contained in:
dudaodong committed 2023-07-04 16:31:13 +08:00
1 parent 584aabdf62
commit 154ec56780
8 files changed
+136 -49

No files matched your search

+2 -2
View File
@@ -40,8 +40,8 @@ func Md5String(s string) string {
return hex.EncodeToString(h.Sum(nil))
}
// Md5String return the md5 string of byte slice.
// Play: todo
// Md5Byte return the md5 string of byte slice.
// Play: https://go.dev/play/p/suraalH8lyC
func Md5Byte(data []byte) string {
h := md5.New()
h.Write(data)