c85af2641b
refactored the project significantly to reduce the single-file monolith
11 lines
126 B
Go
11 lines
126 B
Go
package util
|
|
|
|
import (
|
|
"crypto/sha1"
|
|
"fmt"
|
|
)
|
|
|
|
func Hash(s string) string {
|
|
return fmt.Sprintf("%x", sha1.Sum([]byte(s)))
|
|
}
|