Bjørn Erik Pedersen
|
644d55475d
|
Add hash.XxHash
Also move the non crypto hash funcs into this new package.
This is much faster than e.g. MD5, especially for larger inputs:
```
BenchmarkXxHash/xxHash_43-10 9917955 112.2 ns/op 56 B/op 4 allocs/op
BenchmarkXxHash/mdb5_43-10 6017239 204.1 ns/op 96 B/op 3 allocs/op
BenchmarkXxHash/fnv32a_43-10 14407333 82.30 ns/op 16 B/op 1 allocs/op
BenchmarkXxHash/xxHash_4300-10 2916892 409.7 ns/op 56 B/op 4 allocs/op
BenchmarkXxHash/mdb5_4300-10 159748 7491 ns/op 4912 B/op 3 allocs/op
BenchmarkXxHash/fnv32a_4300-10 218210 5510 ns/op 16 B/op 1 allocs/op
```
Fixes #12635
|
2024-07-06 14:08:15 +02:00 |
|
Bjørn Erik Pedersen
|
ce524d0b5e
|
Add a page template func
Fixes #9339
|
2023-02-25 19:53:18 +01:00 |
|
Bjørn Erik Pedersen
|
e5f2173169
|
tpl/crypto: Add example for FNV32a
|
2022-04-28 17:47:17 +02:00 |
|
Bjørn Erik Pedersen
|
b80853de90
|
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
|
2022-03-17 22:03:27 +01:00 |
|
Bjørn Erik Pedersen
|
6c70e1f22f
|
Fix error handling for the time func alias
Fixes #8835
|
2021-08-01 13:39:30 +02:00 |
|
Bjørn Erik Pedersen
|
d90e37e0c6
|
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
|
2020-12-03 13:12:58 +01:00 |
|
Edouard
|
7eeebe1e5a
|
tpl/crypto: Add hmac
|
2020-06-05 20:04:11 +02:00 |
|
Bjørn Erik Pedersen
|
d8717cd4c7
|
all: Update import paths to gohugoio/hugo
|
2017-06-13 18:42:45 +02:00 |
|
Bjørn Erik Pedersen
|
1f9e8dcc60
|
tpl: Make the Namespace func signature explicit
This makes it cleaner and avoids breaking client code, such as the docs helper JSON generator.
|
2017-05-20 11:34:38 +03:00 |
|
Bjørn Erik Pedersen
|
690b0f8ff5
|
tpl: Add docshelper for template funcs
And fix some other minor related issues.
Updates #3418
|
2017-05-01 21:44:15 +02:00 |
|
Bjørn Erik Pedersen
|
0e2260421e
|
tpl: Fix the remaining template funcs namespace issues
See #3042
|
2017-05-01 15:13:41 +02:00 |
|
Bjørn Erik Pedersen
|
744dccbea4
|
tpl/crypto: Make it a package that stands on its own
See #3042
|
2017-05-01 15:13:41 +02:00 |
|