tpl: Allow 'Querify' to take lone slice/interface argument
authorUjjwal Goyal <importujjwal@gmail.com>
Sat, 6 Mar 2021 18:38:10 +0000 (00:08 +0530)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 9 May 2021 11:14:14 +0000 (13:14 +0200)
commitc46fc838a9320adfc6532b1b543e903c48b3b4cb
tree9d751a342893dc1d84e98006a8d024f857ded894
parent504c78da4b5020e1fd13a1195ad38a9e85f8289a
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
tpl/collections/collections.go
tpl/collections/collections_test.go
tpl/collections/init.go