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 Support unComparable args of uniq/complement/in 2020-03-09 13:32:38 +01:00
complement_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
index.go Fix Params case handling in the index, sort and where func 2019-11-22 18:41:50 +01:00
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 tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
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 Fix Params case handling in the index, sort and where func 2019-11-22 18:41:50 +01:00
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