docs: Update description of querify

This commit is contained in:
digitalcraftsman 2016-12-03 20:23:41 +01:00
parent 0ba9fb9631
commit 01b8bc1b26

View file

@ -882,7 +882,7 @@ e.g. `<a href="/tags/{{ . | urlize }}">{{ . }}</a>`
### querify
Takes a set of key-value pairs and returns a [`url.Values`](https://godoc.org/net/url#Values) object. The [`Encode`](https://godoc.org/net/url#Values.Encode) method turns the pairs into a [query string](https://en.wikipedia.org/wiki/Query_string) that cen be postpended to a url. E.g.
Takes a set of key-value pairs and returns a [`url.Values`](https://godoc.org/net/url#Values) object. The [`Encode`](https://godoc.org/net/url#Values.Encode) method turns the pairs into a [query string](https://en.wikipedia.org/wiki/Query_string) that can be appended to a url. E.g.
<a href="https://www.google.com?{{ (querify "q" "test" "page" 3).Encode | safeHTML }}">Search</a>