mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-29 17:08:52 +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)))
|
||
|
}
|