Switch to Go 1.16 embed functionality (#42)

commit 8b9ecaaa2fe8b65e3a32317e2979387af39b5262
Author: Vic Demuzere <vic@demuzere.be>
Date:   Tue Aug 24 15:14:38 2021 +0200

    Switch to Go 1.6 embed functionality

    This means the go-bindata compile-time dependency is no longer needed.

closes #42

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-06 12:37:52 +02:00
parent f1751aff86
commit 71fa3b7590
No known key found for this signature in database
GPG key ID: 0066F03ED215AD7D
5 changed files with 10 additions and 63118 deletions

View file

@ -12,7 +12,10 @@ var tplFuncs = template.FuncMap{
}
func assetSRIHash(assetName string) string {
data := MustAsset(path.Join("frontend", assetName))
data, err := assets.ReadFile(path.Join("frontend", assetName))
if err != nil {
panic(err)
}
h := sha512.New384()
h.Write(data)