From e5f21731696bd4a9a396936b18d9ae72291b01b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 28 Apr 2022 17:47:17 +0200 Subject: [PATCH] tpl/crypto: Add example for FNV32a --- tpl/crypto/init.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tpl/crypto/init.go b/tpl/crypto/init.go index 4b7cde2fa94..dddc5585a9e 100644 --- a/tpl/crypto/init.go +++ b/tpl/crypto/init.go @@ -51,6 +51,13 @@ func init() { }, ) + ns.AddMethodMapping(ctx.FNV32a, + nil, + [][2]string{ + {`{{ crypto.FNV32a "Hugo Rocks!!" }}`, `1515779328`}, + }, + ) + ns.AddMethodMapping(ctx.HMAC, []string{"hmac"}, [][2]string{