mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 06:56:10 +08:00
发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1
This commit is contained in:
@@ -17,6 +17,11 @@ func Md5ToString(str string) string {
|
||||
return fmt.Sprintf("%x", md5.Sum([]byte(str)))
|
||||
}
|
||||
|
||||
// Md5 生成md5
|
||||
func Md5(b []byte) string {
|
||||
return fmt.Sprintf("%x", md5.Sum(b))
|
||||
}
|
||||
|
||||
func Hash32(b []byte) uint32 {
|
||||
h := fnv.New32a()
|
||||
h.Write(b)
|
||||
|
Reference in New Issue
Block a user