hugo/commands
Bjørn Erik Pedersen 022c479551
hugofs: Make FileMeta a struct
This commit started out investigating a `concurrent map read write` issue, ending by replacing the map with a struct.

This is easier to reason about, and it's more effective:

```
name                                  old time/op    new time/op    delta
SiteNew/Regular_Deep_content_tree-16    71.5ms ± 3%    69.4ms ± 5%    ~     (p=0.200 n=4+4)

name                                  old alloc/op   new alloc/op   delta
SiteNew/Regular_Deep_content_tree-16    29.7MB ± 0%    27.9MB ± 0%  -5.82%  (p=0.029 n=4+4)

name                                  old allocs/op  new allocs/op  delta
SiteNew/Regular_Deep_content_tree-16      313k ± 0%      303k ± 0%  -3.35%  (p=0.029 n=4+4)
```

See #8749
2021-07-15 17:14:26 +02:00
..
check.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
check_darwin.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
commandeer.go Do not read config from os.Environ when running tests 2021-06-16 18:58:40 +02:00
commands.go commands: Move time notification to after any build errors 2021-07-05 10:38:54 +02:00
commands_test.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
config.go modules: Use value type for module.Time 2021-06-27 18:06:52 +02:00
convert.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
deploy.go build: Allow optional "nodeploy" tag to exclude deploy command from bin 2020-10-23 09:03:41 +02:00
env.go Add complete dependency list in "hugo env -v" 2021-04-09 08:07:22 +02:00
gen.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genautocomplete.go commands: Fix autocomplete docs 2021-02-20 14:08:51 +01:00
genchromastyles.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
gendoc.go commands: Remove all dates from gendoc 2021-05-01 12:03:56 +02:00
gendocshelper.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
genman.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00
helpers.go commands: Only show Ansi escape codes if in a terminal 2018-10-26 14:33:44 +02:00
hugo.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
hugo_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_windows.go Update hugo_windows.go 2018-07-22 00:09:46 +02:00
import_jekyll.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
import_jekyll_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
limit_darwin.go Adjust rlimit logic 2019-04-07 00:53:55 +02:00
limit_others.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
list.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
list_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
mod.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
mod_npm.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
new.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
new_content_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
new_site.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
new_theme.go Fix new theme command description 2021-03-14 18:47:23 +01:00
nodeploy.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
release.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
release_noop.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
server.go commands: Move time notification to after any build errors 2021-07-05 10:38:54 +02:00
server_errors.go Use --baseURL path for live-reload URL 2020-12-02 12:52:26 +01:00
server_test.go Misc config loading fixes 2021-06-14 17:00:32 +02:00
static_syncer.go tpl/fmt: Add erroridf template func 2021-06-07 19:11:03 +02:00
version.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00