hugo/resources/resource
Bjørn Erik Pedersen e58a540895 resources: Create a common ResourceFinder interface
And make both .Resources and resources implement it.

This gets us 2 new methods/functions, so you can now also do:

* .Resources.Get
* resources.ByType

Note that GetRemote is not covered by this interface, as that is only available as a global template function.

Fixes #8653
2022-04-05 18:00:44 +02:00
..
dates.go Make Page an interface 2019-03-23 18:51:22 +01:00
params.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_helpers.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resources.go resources: Create a common ResourceFinder interface 2022-04-05 18:00:44 +02:00
resourcetypes.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00