diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-28 17:47:17 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-28 17:47:17 +0200 |
commit | e5f21731696bd4a9a396936b18d9ae72291b01b1 (patch) | |
tree | b35da5834a9bdfefef35306c301f7b68912f7cc9 /tpl/crypto | |
parent | 89c1655ec88cd7286c2ed5f9b7eaed35af9cda52 (diff) |
tpl/crypto: Add example for FNV32a
Diffstat (limited to 'tpl/crypto')
-rw-r--r-- | tpl/crypto/init.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/crypto/init.go b/tpl/crypto/init.go index 4b7cde2fa..dddc5585a 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{ |