feat(utils): 新增查找、MD5及随机字符串工具

This commit is contained in:
unclesam committed 2026-07-08 15:28:51 +08:00
1 parent 320d7c2e49
commit ba8c1f1078
3 files changed
+43

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
package find
func InList[T comparable](list []T, key T) (ok bool) {
for _, t := range list {
if t == key {
return true
}
}
return false
}