diff options
Diffstat (limited to 'helpers/general.go')
-rw-r--r-- | helpers/general.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/general.go b/helpers/general.go index 4517a3232..4bb4eb584 100644 --- a/helpers/general.go +++ b/helpers/general.go @@ -365,8 +365,8 @@ func SliceToLower(s []string) []string { return l } -// Md5String takes a string and returns its MD5 hash. -func Md5String(f string) string { +// MD5String takes a string and returns its MD5 hash. +func MD5String(f string) string { h := md5.New() h.Write([]byte(f)) return hex.EncodeToString(h.Sum([]byte{})) |