mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-25 23:31:04 +00:00
11 lines
124 B
Go
11 lines
124 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"crypto/md5"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func MD5(s string) string {
|
||
|
return fmt.Sprintf("%x", md5.Sum([]byte(s)))
|
||
|
}
|