tpl/crypto: Add example for FNV32a - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit e5f21731696bd4a9a396936b18d9ae72291b01b1
(DIR) parent 89c1655ec88cd7286c2ed5f9b7eaed35af9cda52
(HTM) Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Thu, 28 Apr 2022 17:47:17 +0200
tpl/crypto: Add example for FNV32a
Diffstat:
M tpl/crypto/init.go | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
(DIR) diff --git 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{