diff options
author | Alan Pearce | 2024-06-25 09:14:56 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-25 09:14:56 +0200 |
commit | becede4bfead952239b9cf7c8eb9fb96d01534ec (patch) | |
tree | 20cf7d880487d89bc7d1d2e09912409e1a8f4489 /internal/builder/hasher.go | |
parent | 4f5ca39f582d83ded08a6e1cbf1a195141623b1c (diff) | |
download | website-becede4bfead952239b9cf7c8eb9fb96d01534ec.tar.lz website-becede4bfead952239b9cf7c8eb9fb96d01534ec.tar.zst website-becede4bfead952239b9cf7c8eb9fb96d01534ec.zip |
refactor/format
Diffstat (limited to 'internal/builder/hasher.go')
-rw-r--r-- | internal/builder/hasher.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/builder/hasher.go b/internal/builder/hasher.go index dbc29f8..f0f9167 100644 --- a/internal/builder/hasher.go +++ b/internal/builder/hasher.go @@ -8,5 +8,6 @@ import ( func hash(s string) string { shasum := sha256.New() shasum.Write([]byte(s)) + return "sha256-" + base64.StdEncoding.EncodeToString(shasum.Sum(nil)) } |