tpl/crypto: Add example for FNV32a

This commit is contained in:
Bjørn Erik Pedersen 2022-04-28 17:47:17 +02:00
parent 89c1655ec8
commit e5f2173169
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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{