style: code maid is here!

refactored the project significantly to reduce the single-file monolith
This commit is contained in:
Lewis Crichton
2023-08-07 21:52:57 +01:00
parent 476c0b4994
commit c85af2641b
7 changed files with 322 additions and 248 deletions
+10
View File
@@ -0,0 +1,10 @@
package util
import (
"crypto/sha1"
"fmt"
)
func Hash(s string) string {
return fmt.Sprintf("%x", sha1.Sum([]byte(s)))
}