hugo/tpl
Bjørn Erik Pedersen a3701e0931 Switch to go-toml v2
We have been using `go-toml` for language files only. This commit makes it the only TOML library.

It's spec compliant and very fast.

A benchark building a site with 200 pages with TOML front matter:

```bash
name                                  old time/op    new time/op    delta
SiteNew/Regular_TOML_front_matter-16    48.5ms ± 1%    47.1ms ± 1%  -2.85%  (p=0.029 n=4+4)

name                                  old alloc/op   new alloc/op   delta
SiteNew/Regular_TOML_front_matter-16    16.9MB ± 0%    16.7MB ± 0%  -1.56%  (p=0.029 n=4+4)

name                                  old allocs/op  new allocs/op  delta
SiteNew/Regular_TOML_front_matter-16      302k ± 0%      296k ± 0%  -2.20%  (p=0.029 n=4+4)
```

Note that the front matter unmarshaling is only a small part of building a site, so the above is very good.

Fixes #8801
2021-07-28 11:51:13 +02:00
..
cast Misc config loading fixes 2021-06-14 17:00:32 +02:00
collections Misc config loading fixes 2021-06-14 17:00:32 +02:00
compare
crypto
data Misc config loading fixes 2021-06-14 17:00:32 +02:00
debug
encoding Misc config loading fixes 2021-06-14 17:00:32 +02:00
fmt
hugo Misc config loading fixes 2021-06-14 17:00:32 +02:00
images Misc config loading fixes 2021-06-14 17:00:32 +02:00
inflect
internal
js
lang
math
openapi/openapi3
os Misc config loading fixes 2021-06-14 17:00:32 +02:00
partials
path Misc config loading fixes 2021-06-14 17:00:32 +02:00
reflect
resources Misc config loading fixes 2021-06-14 17:00:32 +02:00
safe
site Misc config loading fixes 2021-06-14 17:00:32 +02:00
strings Misc config loading fixes 2021-06-14 17:00:32 +02:00
templates
time Add timezone support for front matter dates without one 2021-07-27 19:02:48 +02:00
tplimpl hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
transform Switch to go-toml v2 2021-07-28 11:51:13 +02:00
urls Misc config loading fixes 2021-06-14 17:00:32 +02:00
template.go
template_info.go
template_test.go