mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-30 09:28:51 +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)))
|
||
|
}
|