mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +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)))
|
||
|
}
|