Skip to content

Commit

Permalink
tpl/crypto: Add example for FNV32a
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Apr 28, 2022
1 parent 89c1655 commit e5f2173
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tpl/crypto/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit e5f2173

Please sign in to comment.