hugo/tpl/collections
Ujjwal Goyal c46fc838a9 tpl: Allow 'Querify' to take lone slice/interface argument
Querify can now take a lone string/interface slice (with string
keys) as a parameter, or multiple string parameters, to build
URL queries.

Querify earlier used 'Dictionary' to add key/value pairs to a
map to build URL queries. Changed to dynamically generate ordered
key/value pairs. Cannot take string slice as key (earlier
possible due to Dictionary).

Added tests and benchmarks for querify.

Closes #6735
2021-05-09 13:14:14 +02:00
..
append.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
append_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
apply.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
apply_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
collections.go tpl: Allow 'Querify' to take lone slice/interface argument 2021-05-09 13:14:14 +02:00
collections_test.go tpl: Allow 'Querify' to take lone slice/interface argument 2021-05-09 13:14:14 +02:00
complement.go
complement_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
index.go
index_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
init.go tpl: Allow 'Querify' to take lone slice/interface argument 2021-05-09 13:14:14 +02:00
init_test.go
merge.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
merge_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
reflect_helpers.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
sort.go
sort_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
symdiff.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
symdiff_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
where.go tpl/collections: Fix where on type mismatches 2021-04-23 18:06:49 +02:00
where_test.go tpl/collections: Fix where on type mismatches 2021-04-23 18:06:49 +02:00