go(funcmap): add sha384,sha512 funcs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-05-14 22:53:25 +02:00
parent 31ab083f8a
commit 852cc60a9e
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -32,6 +32,26 @@ func FuncMap() template.FuncMap {
return ""
}
return *r
},
"sha384": func(path string) string {
t := New("sha384")
r, err := t.Integrity(path, isLive)
if err != nil {
return ""
}
return *r
},
"sha512": func(path string) string {
t := New("sha512")
r, err := t.Integrity(path, isLive)
if err != nil {
return ""
}
return *r
},
}