hugo/common
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
..
collections all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
constants Allow getJSON errors to be ignored 2020-10-22 09:09:29 +02:00
herrors Switch to go-toml v2 2021-07-28 11:51:13 +02:00
hexec Improve LookPath 2020-12-19 17:03:07 +01:00
hreflect Correct function name in comment 2021-04-22 12:24:12 +02:00
htime Localize time.Format 2021-07-27 19:02:48 +02:00
hugio all: Fix minor typos 2020-12-16 12:11:32 +01:00
hugo releaser: Prepare repository for 0.87.0-DEV 2021-07-21 11:13:04 +00:00
loggers tpl/fmt: Add erroridf template func 2021-06-07 19:11:03 +02:00
maps Fix config handling with empty config entries after merge 2021-06-27 15:01:56 +02:00
math tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
para para: Skip para test when not on CI 2020-12-23 19:47:20 +01:00
paths Split out the puthe path/filepath functions into common/paths 2021-06-18 10:55:00 +02:00
terminal Fix ANSI character output regression on Windows 2018-11-02 09:09:02 +01:00
text Revert "publisher: Make the HTML element collector more robust" 2021-05-19 03:45:36 +02:00
types commands: Make the --poll flag a duration 2021-07-05 10:23:29 +02:00
urls Add file (line/col) info to ref/relref errors 2018-11-01 21:06:35 +01:00